开发者

Using the Facebook API to get users who have "liked" you

How do I use the facebook api to get the list of users who have liked my business facebook page?

I understand I can get users who have liked certain objects (ex: photos) by doing this:

https://graph.fac开发者_开发问答ebook.com/<obj id here>/likes


You can make an FQL Query to like table.

Like this:

SELECT user_id FROM like WHERE object_id="your_page_id"

See this Documentation For like Table ( http://developers.facebook.com/docs/reference/fql/like/ )

If you want specifically for Page Likes (which are called page Fans) then page_fan Table can be queried.

SELECT uid FROM page_fan WHERE page_id = your_page_id

See this Documentation For page_fan Table http://developers.facebook.com/docs/reference/fql/page_fan/


This functionality isn't possible for Page objects with the Graph API or FQL, please see: How to list facebook users who like a page or interest

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜