Facebook Graph API + Facebook Pages

后端 未结 9 1490
温柔的废话
温柔的废话 2021-02-06 09:17

Using Facebook\'s Graph API, given a username xyz (assuming they\'ve authenticated my site), how do I get a list of all of the facebook pages that the user administers?

9条回答
  •  执念已碎
    2021-02-06 09:50

    I found the answer, you need to use FQL, passing in the appropriate access_token:

    https://api.facebook.com/method/fql.query?query=SELECT%20page_id%20FROM%20page_admin%20WHERE%20uid=XXXX&access_token=YYYY

提交回复
热议问题