Skip to main content
GET
/
auth
/
facebook
Initiate Facebook OAuth login
curl --request GET \
  --url https://api.royalti.io/auth/facebook \
  --header 'Authorization: Bearer <token>'
{
  "success": false,
  "error": {
    "code": "<string>",
    "message": "<string>",
    "details": [
      "<string>"
    ]
  }
}

Code Examples

const response = await fetch('https://api.royalti.io/auth/facebook', {
  method: 'GET',
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Response

Redirect to Facebook OAuth consent screen