Facebook Graph API + Facebook Pages

后端 未结 9 1491
温柔的废话
温柔的废话 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:04

    Fql is the best way to get the pages of the user for which he is the admin. As the others like likes of user will give all the pages that the user like.

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2021-02-06 10:14

    access_token is valid for an hour or less. What should someone do in order to get the details even after. I was trying to result get the result from

    https://graph.facebook.com/v2.3/search?q=coffee&type=place&center=37.76,-122.427&distance=1000&access_token=xyz

    This worked for an hour or so but how do i get the result after an hour...without going for a login.

    0 讨论(0)
提交回复
热议问题