如何列出喜欢某个页面或感兴趣的 Facebook 用户
可能的重复:
检索 Facebook 粉丝姓名
我想获取喜欢某个页面或感兴趣的 Facebook 用户的列表。
像“SELECT user_id FROM like WHERE object_id=113970468613229
”这样的 FQL 不起作用。
有办法做到这一点吗?
Possible Duplicate:
Retrieve Facebook Fan Names
I wanna get a list of facebook users who like a page or interest.
FQL like 'SELECT user_id FROM like WHERE object_id=113970468613229
' does not work.
Is there a way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我是 Facebook 的合作伙伴工程师,所以我想我应该在这里插话。 Facebook API 不会向您提供喜欢某个页面或感兴趣的用户的用户 ID,这是为了保护这些用户的隐私。
I am Partner Engineer at Facebook so I thought I'd chime in here. The Facebook APIs will not give you the user ID of users who have liked a page or interest, this is to guard the privacy of those users.
无法通过 API 获取喜欢您页面的人员列表,这就是为什么这个问题从未得到解答。您可以从 Facebook Insights 获取有关谁喜欢您的页面的图表和汇总信息,但它不是个人身份信息,例如他们的用户 ID。
您可以通过以下方式查看最近喜欢您页面的 500 位用户:
https://www.facebook.com/browse/?type=page_fans&page_id= 您的页面 ID,但您必须抓取此信息才能获取信息,并且除了最近 500 人之外,它不适用于更多人。
There is no way to get a list of people that like your page via their API, which is why this question never got answered. You can get charts and aggregate information about who like your page from Facebook Insights but it is not personally identifiable information like their user id.
You can see the most recent 500 users that have like your page by going to:
https://www.facebook.com/browse/?type=page_fans&page_id=your page id but you would have to scrape this to get the information and it won't work for more people besides the most recent 500.
遗憾的是,无法获取喜欢您页面的用户 ID。
您可以使用“赞”框来显示喜欢您页面的一堆用户。正如哈哈所说,您可以检测一个用户是否喜欢某个页面。
对于 likebox/facepile 选项,请查看以下文档:
赞框
It isn't possible to get the ids of users who like your page unfortunately.
You can use the like box to show a facepile of users who like your page. And as haha said you can detect if one user likes a page.
For the likebox/facepile option check out the docs at:
Likebox
FQL 文档已更新以澄清此限制:
https://developers.facebook.com/docs/reference/fql/like/
The FQL docs have been updated to clarify this limitation:
https://developers.facebook.com/docs/reference/fql/like/
根据 facebook api,这就是你的做法。除了它说你应该在你的 object_id 周围加上引号。
该示例表示:
http://developers.facebook.com/docs/reference/fql/喜欢
According to the facebook api that is exactly how you do it. Except it says you should have quotes around your object_id.
The example says:
http://developers.facebook.com/docs/reference/fql/like
通过 Facebook PHP-SDK 你可以使用这个
With Facebook PHP-SDK you can use this