我怎样才能过滤掉像Facebook这样的按钮,html

时间:2013-04-05 12:30:16

标签: html css facebook-like

我在fb开发者页面上为页面创建了一个类似fb的按钮。 现在,我想要修改的页面部分看起来像这个atm

enter image description here

所以我的问题是我想过滤掉 188 )。并用这个188做一个像

这样的小段落
  

此网站喜欢 188

这里有一个小例子,它应该是什么样的。

enter image description here

提前谢谢你们

1 个答案:

答案 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.");
            }
        });

请参阅此链接http://jsfiddle.net/YFtvU/6/