Reputation: 1881
I have offline access_token for the user, I want to get the id's of all the pages administered by the user so that I can update the page status using the facebook API calls.
Upvotes: 0
Views: 192
Reputation: 30002
You can use the page_admin
table wit FQL to find the pages the user administers using the following:
SELECT page_id, type from page_admin WHERE uid=me()
In that example, you will get the list of pages administered by me()
(you).
For more information about the page_admin
table, have a look here. The same procedure can be done for domains as well using the domain_admin table.
You can test the query here.
Upvotes: 1