Facebook external IDP
The Facebook Login social connection allows users to log in to your application using their Facebook profile.
Request credentials at Facebook
Prerequisites
This process requires:
- A Facebook Developer account
Create an app at Facebook
-
Log in to the Facebook developer portal, using your Facebook Developer account.
-
Click Create App.
-
Give the app a name and a contact email address. Click Next.
-
Select Authenticate and request data from users with Facebook Login.
-
To use this app in production, you need to finish the Business verification and app review process.
Add Facebook login configuration
-
Open the app that you created.
-
In the left-side menu, ensure that you see the Facebook Login product.
-
Open the Facebook Login menu section and click Settings.
-
Make sure that these options are enabled:
- Client OAuth login
- Web OAuth Login
- Enforce HTTPS
- Use Strict Mode for redirect URIs
-
Add your Valid OAuth Redirect URIs, which look like:
https://<tenant-domain>/broker/authentication/callback
. -
Save your changes.
Fetch the credentials
-
While you still have the app open, in the left-side menu, open App setting > Basic.
-
Copy the App ID.
-
Show and copy the
App secret
.
Configure Facebook login in the Identity Broker
- Click Add identity provider and select Facebook.
In a typical scenario, you fill in the following connection details:
- Display name: Facebook (just an example)
- Active: Select the check box
- Client ID: The app ID
- Client secret: The app secret
Variant
You always need at least one variant. For Facebook, you only need to configure a variant name, such as Authentication. For scopes, Thales recommends email
and public_profile
, but you could also add permissions.