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/
精彩评论