我放在页面上的“喜欢”插件既显示了直接单击按钮的次数,也显示了页面URL被共享的次数或类似的注释次数。
但是,当我使用Graph签出我的对象时,它只显示直接“喜欢”单击的次数。下面是一个示例对象:
{
"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“的计数,但我的对象将只显示1的计数。
有什么方法可以获得按钮在我的页面上显示的完整的“喜欢”计数?
发布于 2012-03-18 08:00:47
我找到了两种方法。使用图形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'使用Rest的旧方法正在被废弃:
link.getStats()https://developers.facebook.com/docs/reference/rest/links.getStats/
发布于 2014-02-16 16:07:56
我知道这篇文章很旧&不确定你是否只是问如何合并柜台,但这里有两件事你肯定可以尝试。
SharedCount:您可以在线检查统计数据,也可以集成它们的API。不过,这大约是免费的。10K API请求一个月。
编辑:你也可以看到这个问题。https://wordpress.stackexchange.com/questions/133536/display-total-number-of-social-shares
希望这能有所帮助
https://stackoverflow.com/questions/9746887
复制相似问题