new FacebookAdapter(options)
Parse Server Configuration
To configure Parse Server for Facebook authentication, use the following structure:
{
"auth": {
"facebook": {
"appSecret": "your-app-secret",
"appIds": ["your-app-id"]
}
}
}
The adapter supports the following authentication methods:
- Standard Login: Requires
id
andaccess_token
. - Limited Login: Requires
id
andtoken
.
Auth Payloads
Standard Login Payload
{
"facebook": {
"id": "1234567",
"access_token": "abc123def456ghi789"
}
}
Limited Login Payload
{
"facebook": {
"id": "1234567",
"token": "xxxxx.yyyyy.zzzzz"
}
}
Notes
- Standard Login: Use
id
andaccess_token
for full functionality. - Limited Login: Use
id
andtoken
(JWT) when tracking is opted out (e.g., via Apple's App Tracking Transparency). - Supported Parse Server versions:
>= 6.5.6 < 7
>= 7.0.1
Secure authentication is recommended to ensure proper data protection and compliance with Facebook's guidelines.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
options | Object | The adapter configuration options. Properties
|