Facebook Graph API + Facebook Pages

后端 未结 9 1487
温柔的废话
温柔的废话 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 10:11

    The accounts property on the user object says:

    The Facebook pages owned by the current user. If the manage_pages permission has been granted, this connection also yields access_tokens that can be used to query the Graph API on behalf of the page.

    http://developers.facebook.com/docs/reference/api/user

提交回复
热议问题