Facebook Sign In
Authenticates a user using a Facebook access token (from Facebook SDK / Login). The token is validated via Facebook Graph API debug_token; it must be valid and issued for the configured Facebook app (app_id match). On success, returns token envelope; downstream may create/update user and issue tokens.
Headers
- Type: string
Optional caller-provided correlation ID; echoed in responses when present.
Body
required
application/json
- Type: stringrequired
Facebook user access token from Facebook SDK / Login flow.
- Type: stringrequired
OAuth client ID provided by the business. Required to identify the client application for authentication. The OAuth application must have the Advance Auth scope enabled.
- Type: booleanrequired
Must be true to allow signup.
- Type: booleanrequired
Must be true to allow signup.
- Type: string enum
Signup channel identifier (optional, defaults to WebFacebook).
values- Web
Facebook - Mobile
Facebook
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for post/api2/social/facebook/signin
curl https://SERVER_NAME_GOES_HERE/api2/social/facebook/signin \
--request POST \
--header 'Content-Type: application/json' \
--data '{
"client": "CLIENT_GOES_HERE",
"access_token": "ACCESS_TOKEN_GOES_HERE",
"signup_channel": "WebFacebook",
"privacy_policy": true,
"terms_and_conditions": true
}'
{
"data": {
"access_token": "ACCESS_TOKEN_GOES_HERE",
"token_type": "Bearer",
"refresh_token": "REFRESH_TOKEN_GOES_HERE",
"expires_in": 86400
}
}