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
Section titled “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
Section titled “Access the Facebook Developer Console”-
Go to Facebook for Developers and click the
Log Inbutton in the top navigation bar. -
Click the
Create Appbutton, enter a name for the application and a contact email address, and click theCreate App IDbutton.
- In use cases, select the login with Facebook and click the
Nextbutton. Fill in the required fields and click theCreate Appbutton.
Configure the use case
Section titled “Configure the use case”-
Click on “Use Cases” in the side navigation bar of the console. Then click on “Login with Facebook”.
-
Check the “email” and “public_profile” permissions and click the “Save Changes” button. Both permissions are required for WiLake to access user information.
-
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
Section titled “Complete the rest of the information and obtain the credentials”-
In the console sidebar, scroll down to “App Settings” and click on “Basic Information”.
-
Modify the settings to match your application and click “Save Changes”.
-
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.
-
Submit the application for review and approval by Meta.
Configure WiLake
Section titled “Configure WiLake”-
Access the WiLake administration console, go to
Management > Captive Portalsand edit the portal you want to configure. -
In the
Credentialstab enter the OAuth 2 credentials you obtained from Facebook under theFacebooksection. -
Click the
Savebutton.