API Reference
Facebook LoginGETLogin dialog
Facebook Login

Login dialog

GET/v27.0/dialog/oauth
Base URL: https://meta-ads.mimicr.dev · provider: https://www.facebook.com

The Facebook Login dialog of the manual (server-side) flow. Open it in the browser; after the person confirms, the browser is redirected to redirect_uri?code=…&state=…#_=_. If the person cancels, it goes to redirect_uri?error=access_denied&error_code=200&error_description=Permissions+error&error_reason=user_denied&state=…#_=_.

Facebook Login for Business sends config_id instead of scope: the permissions (and the token type, user or system user) come from the configuration.

In Mimicr, the dialog is a hosted page on the same host that lets the tester pick a persona (admin, no_accounts, no_business, declines, unavailable), untick permissions, ad accounts and Pages. Codes are valid for 10 minutes and single-use. An unknown client_id shows "Invalid App ID"; a redirect_uri outside the app's valid OAuth redirect URIs shows "URL blocked" (an empty list allows any https URL and localhost).

Authorization

Public route, no token.

Query parameters

client_idstringrequired

The app ID.

Example: "519118646608529"
redirect_uristringrequired

URL the person returns to. Must be one of the app's valid OAuth redirect URIs.

statestring

Opaque value returned unchanged; use it against CSRF.

response_typestring

code for the server-side flow.

code
scopestring

Comma-separated permissions (ads_read,ads_management,business_management,pages_show_list,…).

config_idstring

ID of a Facebook Login for Business configuration, instead of scope.

auth_typestring

rerequest asks again for declined permissions.

Responses

200The dialog (HTML).
string
302After Continue or Cancel: redirect to redirect_uri with code and state, or with error=access_denied; #_=_ is appended.
400HTML error page: "Invalid App ID" or "URL blocked".
string