Prerequisites
- A Meta for Developers account
- Your Facebook App ID (client ID) and App Secret (client secret)
Configure Facebook OAuth
1
Create a Facebook app
- Go to Meta for Developers
- Click Create App
- Select a use case that includes Facebook Login (for example, “Authenticate and request data from users with Facebook Login”)
- Fill in the app details and finish the creation flow
- In the app dashboard, add the Facebook Login product if it is not already added
- Navigate to App settings > Basic to find your App ID and App Secret — you will need them in the next step
2
Set the authorized redirect URI
In your Facebook app dashboard:Replace
- Go to Facebook Login > Settings
- Under Valid OAuth Redirect URIs, add:
${YOUR_CUSTOM_DOMAIN} with your custom domain (e.g. session.yourapp.com).- Click Save changes
The redirect URI must match exactly. Make sure there is no trailing slash and that you are using
https.3
Create the Facebook OAuth configuration
Facebook only returns an email when the user grants the
email permission and their Facebook account has a verified email address. Users without a verified email on Facebook will sign in without an email identifier.