FacebookAdapter

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 and access_token.
  • Limited Login: Requires id and token.

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 and access_token for full functionality.
  • Limited Login: Use id and token (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:
NameTypeDescription
optionsObject

The adapter configuration options.

Properties
NameTypeDescription
appSecretstring

Your Facebook App Secret. Required for secure authentication.

appIdsArray.<string>

An array of Facebook App IDs. Required for validating the app.