Authenticate users via Facebook OAuth 2.0 with facebookProvider. Covers Developer Portal setup, redirect URI, and the default email and public profile scopes.
Setup
1
Get credentials
Go to the Facebook Developer Portal and create an app. Under Facebook Login > Settings, add your redirect URI:
Default scopes: email, public_profileTo 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.