共享者或提要对话框 URL 计数
我需要共享 URL 并获取每个 URL 的共享计数。我一直在谷歌上搜索并尝试这两种方法:
1.- 首先,我一直使用已弃用的“facebook.com/sharer.php”来共享 URL,然后我运行如下所示的 FQL 查询: https://api.facebook.com/method/fql.query?query=select+total_count+from+link_stat+where+url="...这里是 URL... "
在这种情况下,它永远不会计算第一股。例如,我第一次共享 URL,FQL 查询给我零。然后我第二次共享 URL - 然后 FQL 查询给我 1. 等
2.- 我在这里发现一条消息,共享器从 2011 年 3 月起已被弃用,最好使用“facebook.com/dialog/feed " 出于 URL 共享的目的。但如果我与提要对话框共享 URL,FQL 查询总是给我零。
问题是:如何共享 URL 并获取它们的有效计数?
谢谢。
I need to share the URLs and get the share count for each of them. I've been googling a lot and trying this 2 ways:
1.- First I've been using the deprecated "facebook.com/sharer.php" to share an URL, then I run FQL query like this: https://api.facebook.com/method/fql.query?query=select+total_count+from+link_stat+where+url="...here the URL..."
In this case, it never counts the first share. E.g. I share the URL for the first time and FQL query gives me zero. Then I share URL for the second time - then the FQL query gives me 1. etc.
2.- I've found a message here that sharer is deprecated from March 2011, and it's better to use "facebook.com/dialog/feed" for the purposes of URL sharing. But if I share URLs with the feed dialog, FQL query always gives me zero.
The question is: How do I share URLs and get the valid count for them?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用新的发送按钮来替换不再受支持的旧sharer.php。
发送按钮很容易集成:
http://developers.facebook.com/docs/reference/ plugins/like/
(请参阅右侧示例)
要计算可以使用见解表的份额
http://developers.facebook.com/docs/reference/fql/insights/
我 相信这也体现了点赞数。
希望这有帮助!
You can use the new Send Button which replaces the old sharer.php that is not going to be supported.
Send Button is easy integrated:
http://developers.facebook.com/docs/reference/plugins/like/
(see the example in right)
To count the shares you can use Insights table
http://developers.facebook.com/docs/reference/fql/insights/#plugins
I also belive that this reflect the like count also.
Hope this helps!