我在fb开发者页面上为页面创建了一个类似fb的按钮。 现在,我想要修改的页面部分看起来像这个atm
所以我的问题是我想过滤掉赞( 188 )。并用这个188做一个像
这样的小段落此网站喜欢 188
这里有一个小例子,它应该是什么样的。
提前谢谢你们
答案 0 :(得分:0)
你可以通过ajax调用此url获得喜欢
http://graph.facebook.com/https://www.facebook.com/Cyprusjetset
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "http://graph.facebook.com/https://www.facebook.com/Cyprusjetset",
dataType: "json",
success: function (data) {
alert(data.likes);
},
error: function (result) {
alert("Sorry no data found.");
}
});