问题
I want to add a like/recommendation button to my site. Then, I want to be able to use the Graph API to query the recommendations for my domain (e.g. 17 people liked mysite.com/thisawesomepage)
There is a plugin that does this: http://developers.facebook.com/docs/reference/plugins/recommendations, but I want to be able to retrieve the raw data.
Is this possible?
回答1:
you just need the 'like_id' of your site. you can get it by liking it and looking at your list of likes through the graph api or however else.
then you just put it in a url like this:
https://graph.facebook.com/125086767519561
125086767519561 is the id of the The Glamourist, and you can see that it has been liked 198 times at the time of this writing.
来源:https://stackoverflow.com/questions/4598128/how-can-i-use-facebook-graph-api-to-get-my-sites-recommendations