FacebookProvider
Reference doc for the `FacebookProvider`.
Use this provider to authenticate with Facebook. Supports both OAuth2 and OIDC.
Using OAuth
Using OIDC
Methods
FacebookOidcProvider
Parameters
The config for the provider.config
FacebookOidcConfig
Returns Provider
Create a Facebook OIDC provider.
This is useful if you just want to verify the user’s email address.
FacebookProvider
Parameters
The config for the provider.config
FacebookConfig
Returns Provider
Create a Facebook OAuth2 provider.
FacebookConfig
-
clientID
string
-
clientSecret
string
-
query?
Record
<
string
,string
>
-
scopes
string
[]
FacebookConfig.clientID
Type string
The client ID.
This is just a string to identify your app.
FacebookConfig.clientSecret
Type string
The client secret.
This is a private key that’s used to authenticate your app. It should be kept secret.
FacebookConfig.query?
Type Record
<
string
, string
>
Any additional parameters that you want to pass to the authorization endpoint.
FacebookConfig.scopes
Type string
[]
A list of OAuth scopes that you want to request.
FacebookOidcConfig
FacebookOidcConfig.clientID
Type string
The client ID.
This is just a string to identify your app.
FacebookOidcConfig.query?
Type Record
<
string
, string
>
Any additional parameters that you want to pass to the authorization endpoint.
FacebookOidcConfig.scopes?
Type string
[]
A list of OIDC scopes that you want to request.