Skip to main content

Setup

1

Get credentials

Go to the Facebook Developer Portal and create an app. Under Facebook Login > Settings, add your redirect URI:
Copy the App ID and App Secret from the app dashboard.
2

Configure

Environment variables

Scopes

Default scopes: email, public_profile To request additional data, pass a scopes array as the third argument. It replaces the defaults, so include email and public_profile too:
Facebook requires app review before requesting most extended permissions beyond email and public_profile.
This is a preset built on the generic OIDC factory, which reads the user from https://graph.facebook.com/me?fields=id,email,name,picture and requires the response to contain the OIDC sub and email fields. That endpoint returns a numeric id field, so sign-in is expected to fail with Facebook userinfo response missing required "sub" field. This preset has not been verified against the live service.

Endpoints

Last modified on October 18, 2026