API Reference
Facebook LoginGETLogin dialog
Tokens and permissions

Debug a token

GET/v27.0/debug_token
Base URL: https://meta-ads.mimicr.dev · provider: https://graph.facebook.com

Returns the metadata of input_token: app, type (USER, PAGE, SYSTEM_USER), expiry, validity, permissions and granular_scopes (the ad accounts, Pages and businesses each permission covers). Call it with the app token or a token of a developer of the app. An invalid token returns is_valid: false with error {code, subcode, message}.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Query parameters

input_tokenstringrequired

The token to inspect.

Responses

200OK.
dataobject
Show child attributes
app_idstring

ID of the app the token belongs to.

typestring

Type of the token.

USERPAGESYSTEM_USERAPP
applicationstring

Name of the app.

data_access_expires_atinteger

UNIX time the data access expires.

expires_atinteger

UNIX time the token expires; 0 for tokens that never expire (system users).

is_validboolean

Whether the token is valid now.

issued_atinteger

UNIX time the token was issued.

scopesstring[]

Granted permissions.

granular_scopesobject[]

Assets each permission covers (ad account ids without act_, Page ids, business ids).

Show child attributes
scopestring
target_idsstring[]
user_idstring

ID of the user.

errorobject

Why the token is invalid (code, subcode, message).

400Error in the Graph envelope.
errorobjectrequired
Show child attributes
messagestringrequired

Description of the error.

Example: "(#100) The parameter special_ad_categories is required"
typestringrequired

OAuthException for most codes (the Marketing API uses it for validation too), GraphMethodException for unknown objects, FacebookApiException for transient errors. In Mimicr, routes outside the integration core answer MimicrNotSimulated with HTTP 501.

Example: "OAuthException"
codeintegerrequired

Error code (100 invalid parameter, 190 invalid token, 200 permission, 2635 deprecated version, 613/17/80004 rate limits, …).

Example: 100
error_subcodeinteger

Error subcode with more detail (1885272 budget too low, 463 token expired, …).

Example: 1885272
is_transientboolean

Whether retrying the same request may succeed. Present on every Marketing API error; true for codes 1 and 2.

error_user_titlestring

Title of the error, to show to people.

error_user_msgstring

Message of the error, to show to people.

error_dataobject

Extra data. blame_field_specs lists the params that caused a validation error.

Show child attributes
blame_field_specsstring[][]
fbtrace_idstringrequired

Internal support identifier of the request.

Example: "AbCdEf12345"