Is there a way to query for all access_tokens or page_ids that an app has access to? Instinctively I thought I could do me/accounts?access_token= but it looks like it returns all the pages I have access to, not necessarily the ones the app is authorized to manage.
So I know I can check for an access token by calling each page and passing my page access token aka: <graph>/page_id?access_token=xxxx&fields=access_token
I saw that most of these tokens are also in me/accounts but I really am trying to get the view of what pages an APP is managing. That make sense?
- Preferably I am looking for a way to get page_id’s+access tokens but I would be willing to settle for a graph call that returns all page_ids that I manage, and I will manually query each one.
- Do all accounts that I have access to via an app, also show up in my
me/accounts?
Any suggesitions ?
So my issue was me/accounts was skewed because I granted permission to the app to “manage pages.” As a result any app that am admin for will show up in the me/accounts?access_token=.
Your options for geting access tokens are:
me/accounts?access_token=<app_token>/page_id/?fields=access_token&access_token=<app_token>