Facebook

Location /api/apps/{appID}/integration/facebook
Point of integration with Facebook, allows to sign up with Facebook credentials

Request Headers (Applies to all methods)

Authorization
header
Required: Yes

POST

/api/apps/{appID}/integration/facebook

Description

Request a new token

Security

Can access with all credentials, except anonymous

Content-Type application/vnd.kii.AuthTokenFacebookRequest+json

All the required information from Facebook to request a token.

Headers
Name Required? type Description
Authorization Yes string Authorization header. OAuth2 Bearer token
Params
Name Required? Type Description
accessToken Yes string The access token of the user from Facebook.
expiresAt long The expiration date of the token. The date should be in UNIX epoch time in milliseconds.
Sample Request
{
  "accessToken": "[string]",
  "expiresAt": "[long]"
}
Responses
200

Content-Type application/json

Successfully got a token
Contents
Name Type Description
id string The ID of the principal (user or thing).
access_token string The access token issued by the authorization server.
expires_in long The lifetime of the access token (in seconds).
token_type string The token type. Only "Bearer" is supported.
refresh_token string The new refresh token.
400

Content-Type application/json

Could not get a token
Contents
Name Type Description
errorCode string Oauth2 error code: "invalid_grant" or "unsupported_grant_type".
error_description string The error description.
error string Oauth2 error code