How can I specifically list only user’s pages using Graph API?
I do know that /me/accounts returns user’s pages and apps, but it is also lists shared blog posts and other weird things for some users.
I can easily exclude apps filtering the entries that Category match ‘Application‘, but for some users I got other things that are not page neither apps.
Is there some list of all existent categories? Or all page categories (that hopefully wont change)?
Add
type=pageto the query parameters.To get all pages for the current user, you would use:
https://graph.facebook.com/me/accounts?type=page&access_token=user_access_tokenhttps://developers.facebook.com/tools/explorer/?method=GET&path=me%2Faccounts%3Ftype%3Dpage