How can I use Facebook Graph API to get my site's recommendations?

依然范特西╮ 提交于 2020-01-14 05:21:05

问题


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

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