Skip to content

Start Facebook login (redirect)

GET
/v1/Accounts/{auth_id}/Integrations/Meta/Authorization/Start
curl --request GET \
--url 'https://api.siprtc.io/v1/Accounts/example/Integrations/Meta/Authorization/Start?format=json' \
--header 'Authorization: Basic <credentials>'

Same as GET …/Meta/Authorization, but answers with a 302 redirect straight to the Facebook login dialog instead of returning the URL, for use as a link a signed-in browser follows. On an error it redirects to the return URL (or the platform’s default page) with status=error and message in the query, unless the request asks for JSON (format=json, or an Accept header with application/json and without text/html), which gets a 400 instead. Authentication: HTTP Basic with the account’s Auth ID and Auth Secret. The operation always applies to the authenticated account; {auth_id} should be its Auth ID (with a parent account’s credentials on a sub-account’s path, the parent’s own integration is used, not the sub-account’s).

auth_id
required
string

Auth ID of the authenticated account

return_url
string

Where the browser goes after login (http/https URL on an allowed host); defaults to the Referer header

redirect_url
string

Alias of return_url

format
string
Allowed values: json

Json: report an error as a 400 JSON body instead of a redirect

Redirect to the Facebook login dialog (Location header)

Media type application/json
string

Example generated

example

The platform’s Facebook app is not configured (JSON callers only; others are redirected with status=error)

Media type application/json
object
message

Message says what went wrong.

string
status

Status is always “failed” on an error (some validation errors omit it).

string

Example

{
"message": "error message",
"status": "failed"
}

Missing or invalid credentials; the body is the JSON string Authentication failed

Media type application/json
string

Example generated

example