开发者

How do I determine which of my friends also like a Page I like?

开发者 https://www.devze.com 2023-03-30 09:10 出处:网络
Is there any way to show the amount of my friends who like a page with FQL? For example, if 开发者_开发百科I like a page, how can I learn how many of my friends like that same page? Is it possible?You

Is there any way to show the amount of my friends who like a page with FQL? For example, if 开发者_开发百科I like a page, how can I learn how many of my friends like that same page? Is it possible?


You could use an FQL query like this -

SELECT uid FROM page_fan WHERE page_id = '<YOUR PAGE ID>' AND uid IN
  (SELECT uid2 FROM friend WHERE uid1 = me())

You need uid in the WHERE clause because that's the only indexable field for page_fan. https://developers.facebook.com/docs/reference/fql/page_fan/


What kind of page?

If its a Fan Page no.

Facebook doesn't make it easy to find out who likes a Fan Page. You can get the total count easily enough but not who. If you running an App, somewhat like a Fan Gate then you can in theory collect this data this way, but you cannot do it with FQL. Its just not available.

Perhaps the relevant social plugin might help, http://developers.facebook.com/docs/reference/plugins/like-box/

0

精彩评论

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

关注公众号