API Reference
Login dialog
/v27.0/dialog/oauthhttps://meta-ads.mimicr.dev · provider: https://www.facebook.comThe 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
The app ID.
"519118646608529"URL the person returns to. Must be one of the app's valid OAuth redirect URIs.
Opaque value returned unchanged; use it against CSRF.
code for the server-side flow.
codeComma-separated permissions (ads_read,ads_management,business_management,pages_show_list,…).
ID of a Facebook Login for Business configuration, instead of scope.
rerequest asks again for declined permissions.