你如何得到URL(喜欢和分享)的总喜欢?

问题描述:

我在页面上放置的“喜欢”插件显示该按钮被直接点击的次数,以及页面URL被共享或Like已被评论的次数。你如何得到URL(喜欢和分享)的总喜欢?

当我使用Graph API检查我的对象时,它只显示直接“喜欢”点击次数。下面是一个例子对象:

{ 
    "id": "17678692xxxxxxx", 
    "name": "The Dali Lama Returns", 
    "picture": "http://profile.ak.fbcdn.net/hprofile-ak-snc4/161984_176786925772923_6855xxxxxxx.jpg", 
    "link": "http://mysite.com/8/the-dali-lama-returns", 
    "likes": 1, 
    "app_id": 478xxxxxxx, 
    "category": "Unknown", 
    "is_published": true, 
    "description": "The Dali Lama will speak, and we will listen.", 
    "about": "The Dali Lama will speak, and we will listen.", 
    "can_post": true 
} 

这意味着有人点击我的喜欢按钮后,并写等的评论,该按钮,将显示“2”计数,但我的对象将只显示一个数。

有没有办法让按钮在我的页面上显示完整的“赞”计数?

+0

可能重复(http://facebook.stackoverflow.com/questions/5699270/how-to-get-share-counts-using- [如何使用图形API来获取份额数]图-API) – ifaour 2012-03-17 11:15:34

我发现了两种方法。利用图API的新方法看来是是FQL使用,如下面的请求显示:

https://graph.facebook.com/fql?q=SELECT url, normalized_url, share_count, like_count, comment_count, total_count, commentsbox_count, comments_fbid, click_count FROM link_stat WHERE url='http://mysite.com/8/the-dali-lama-returns' 

旧的方式,其余API,它处于被弃用的过程:

link.getStats() 

https://developers.facebook.com/docs/reference/rest/links.getStats/

我知道后是老&不知道,如果你只问关于如何把柜台上,但这里有两件事情,你一定能试试。

SharedCount:您可以在线查看统计数据,也可以整合他们的API。但是,它的免费约。 10K API请求一个月。

编辑:你也可以看到这个问题。 https://wordpress.stackexchange.com/questions/133536/display-total-number-of-social-shares

TheBuzzz:您可以在线&收益总份额数从流行的社交媒体网站&测试任何URL也返回莫兹反向链接。

希望这有助于的