Skip to content

Facebook

WiLake supports login with Facebook accounts. By default, WiLake uses its own OAuth 2 credentials to connect to the Facebook API. However, if you wish, you can use your own OAuth 2 credentials so that the user sees that they are authorizing your application and not WiLake.

Create a Facebook application

To set up an integration with Facebook, you must create a Facebook application and obtain OAuth 2 credentials. Follow these steps:

Access the Facebook Developer Console

  1. Go to Facebook for Developers and click the Log In button in the top navigation bar.

  2. Click the Create App button, enter a name for the application and a contact email address, and click the Create App ID button.

  1. In use cases, select the login with Facebook and click the Next button. Fill in the required fields and click the Create App button.

Configure the use case

  1. Click on “Use Cases” in the side navigation bar of the console. Then click on “Login with Facebook”.

  2. Check the “email” and “public_profile” permissions and click the “Save Changes” button. Both permissions are required for WiLake to access user information.

  3. From the same permissions page, click on the sidebar under “settings” and set the following parameters in the “OAuth Client Settings” section:

  • OAuth Client Access: Yes
  • OAuth Web Access: Yes
  • Apply HTTPS: Yes
  • Force Web OAuth Reauthentication: No
  • Embedded Browser OAuth Access: No
  • Use Strict Mode for Redirect URIs: Yes
  • Valid OAuth Redirect URIs: https://wilake.app/guest/sociallogin/callback/facebook
  • Login from Devices: No
  • Login with JavaScript SDK: No

Save the changes.

Complete the rest of the information and obtain the credentials

  1. In the console sidebar, scroll down to “App Settings” and click on “Basic Information”.

  2. Modify the settings to match your application and click “Save Changes”.

  3. Copy the values of “App ID” and “App Secret” and save them in a safe place. These values will be used to configure the integration in WiLake.

  4. Submit the application for review and approval by Meta.

Configure WiLake

  1. Access the WiLake administration console, go to Management > Captive Portals and edit the portal you want to configure.

  2. In the Credentials tab enter the OAuth 2 credentials you obtained from Facebook under the Facebook section.

  3. Click the Save button.