Check if a Facebook user likes a page using fql

依然范特西╮ 提交于 2019-12-05 21:38:16

Let's say that you want to check if the current user (uid=me()) is Fan of the "Big Bang Theory" page with *page_id=22934684677* (http://graph.facebook.com/TheBigBangTheory) you should run this query:

SELECT page_id FROM page_fan WHERE uid=me() AND page_id=22934684677

If instead you want to see if the current user likes a website:

SELECT user_id FROM url_like WHERE url='http://someurl.com' AND user_id=me()

This is useful for page tab apps where normal like buttons will only like the page the tab resides in.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!