Get Access Tokens of Pages You Manage

GET https://graph.facebook.com/{{api_version}}/me/accounts?fields=name,access_token,tasks,instagram_business_account&access_token={{user_access_token}}

This request uses a User Access Token to get a list of all the pages managed by a User. Make sure to choose one page from the list, copy the ID into the page_id variable, the access_token field into the page_access_token variable of the environment and the instagram_business_account field into the ig_user_id variable.

This new access token is a Page Access Token, which acts on behalf of a Page that is linked to an Instagram profile.

More available fields can be found here.

Request Params

KeyDatatypeRequiredDescription
fieldsstring
access_tokenstring

HEADERS

KeyDatatypeRequiredDescription
User-Agentstring

RESPONSES

status: OK

{"data":[{"name":"{page_name}","access_token":"{page_access_token}","instagram_business_account":{"id":"{ig_user_id}"},"id":"{page_id}","tasks":["ANALYZE","ADVERTISE","MESSAGING","MODERATE","CREATE_CONTENT","MANAGE"]}]}