如何获取对我的页面点赞的用户 ID?
我正在使用 Graph API 开发 Facebook 页面,并且想知道如何获取喜欢我的页面的用户的用户 ID,即使我可以使用 社交插件。
我尝试了以下方法,但没有成功:
两种图形方法:
graph.facebook.com/page_id/members/
不起作用graph.facebook.com/page_id/members/user_id
有效,但是一一
两个 FQL 查询:
SELECT uid FROM page_fan WHERE page_id="124618122608487" and uid=me()
-- works, but one by one
SELECT uid FROM page_fan WHERE page_id="124618122608487"
-- doesn't work
I'm developing for a Facebook page with Graph API, and would like to know how to get the user IDs of users who like my Page, even though I can get picture and name of those fans using the social plugin.
I've tried the following methods with no luck:
Two graph methods:
graph.facebook.com/page_id/members/
doesn't workgraph.facebook.com/page_id/members/user_id
works, but one by one
Two FQL queries:
SELECT uid FROM page_fan WHERE page_id="124618122608487" and uid=me()
-- works, but one by one
SELECT uid FROM page_fan WHERE page_id="124618122608487"
-- doesn't work
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Facebook 不会告诉您谁喜欢您的页面,只会告诉您总人数。
http://developers.facebook.com/docs/reference/fql/like/
Facebook won't tell you who likes your page, just an aggregate total number.
http://developers.facebook.com/docs/reference/fql/like/
您无需登录您可能想了解签名请求的页面:
这是我的示例代码:
You do not need to log in to the page you may like to know about the signed request:
here is my example code:
默认情况下这是不可能的。但是您可以使用 Facebook Connect 来登录用户,然后您可以获得有关他的信息。
It's not possible by default. But you can use Facebook Connect to get a user to be logged and then you can get info about him.