如何使用Facebook Graph API来获取我的网站的建议? [英] How can I use Facebook Graph API to get my site's recommendations?

查看:103
本文介绍了如何使用Facebook Graph API来获取我的网站的建议?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的网站上添加一个/推荐按钮。然后,我想要使用Graph API来查询我的域的建议(例如17个人喜欢mysite.com/thisawesomepage)



有一个插件这样做: http://developers.facebook.com/docs/reference/plugins/recommendations
,但我想要能够检索原始数据。



这是可能吗?

解决方案

你只需要'like_id 你的网站你可以通过喜欢它,并通过图表api或其他方式查看你的喜欢的列表。



然后你只是把它放在一个这样的URL: p a a a a >



125086767519561是The Glamourist的ID,您可以看到在撰写本文时已经被198次了。


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?

解决方案

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.

这篇关于如何使用Facebook Graph API来获取我的网站的建议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆