如何获取 URL 的 Facebook 访问令牌
我需要获取喜欢特定网址的用户的 ID,我通过 FQL 获取 Facebook URL 对象 ID
SELECT id FROM object_url WHERE url = 'myurl'
作为回报,我得到例如 500504199505
code>
现在,当我需要获取喜欢该 url 的用户列表时,我需要使用这样的图形 api:
https://graph.facebook.com/500504199505
或这样的 FQL:
SELECT user_id FROM like WHERE object_id='500504199505'
但是!!!!为此我需要一个授权令牌。
因此,您必须在您的请求中提供一个访问令牌,该请求与您尝试吸引粉丝的页面的管理员帐户相关联。
但我刚刚使用了一个社交插件并将其粘贴到我的网站,那么我如何获得该令牌,我如何成为特定 URL 的管理员。我有点困惑。
感谢任何人的帮助!
i need to get ids of users who likes particular url, i get an facebook URL object id through FQL
SELECT id FROM object_url WHERE url = 'myurl'
In return i get for example 500504199505
Now, when i need to get the list of users who likes that url, i need to use graph api like that:
https://graph.facebook.com/500504199505
Or FQL like that:
SELECT user_id FROM like WHERE object_id='500504199505'
But!!!! For that i need an authorisation token.
So you have to provide an access token with your request associated with an admin account of the page you are trying to get the fans.
But i have just used a social plugin and pasted it to my site, so how can i get that token, how can i be an administrator of particular URL. I am bit confused.
Thanks for help anyone!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看:
这有帮助。
Check out:
Hope that helps.