Get Access Tokens of Pages You Manage

GET https://graph.facebook.com/{{api_version}}/me/accounts?fields=name,access_token,tasks&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 response list, copy the ID into the page_id variable and the access_token field into the page_access_token variable of the environment.

This new access token is a Page Access Token, which acts on behalf of a Page a user has permission to manage.

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}","id":"{page_id}","tasks":["PROFILE_PLUS_ADVERTISE","PROFILE_PLUS_ANALYZE","PROFILE_PLUS_CREATE_CONTENT","PROFILE_PLUS_FACEBOOK_ACCESS","PROFILE_PLUS_MESSAGING","PROFILE_PLUS_MODERATE","PROFILE_PLUS_FULL_CONTROL","PROFILE_PLUS_MANAGE"]}],"paging":{"cursors":{"before":"{cursor}","after":"{cursor}"}}}