整个域的 Facebook 点赞总数
有没有办法可以检索当天整个网站的点赞总数? 本质上,我想显示当天每篇博客文章的点赞总数。
Is there a way that I can retrieve the total number of Likes for my entire website for the day?
Essentially, I'd like to display the total number of Like for each blog post that day.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
这是所有时间统计数据,而不是当天的统计数据,但这个简单的图形 API 调用显示了 URL 被共享的次数,例如:
https://graph.facebook.com/http://google.com
如果您每天使用网站的每个 URL 启动它,则可以存储这些值并获取每日统计数据。
It's all time stats and not for the day but this simple Graph API call shows how many times an URL has been shared, for example:
https://graph.facebook.com/http://google.com
If you launch it everyday with every URL of your website, you can store the values and get daily stats.
您可以使用 Facebook Insights 获取您的域的统计信息。
干杯,
You can use Facebook Insights to have statistics for your domain.
Cheers,
您需要将一些代码放入您的网站中,如文档中所述 因此您不能对您想要的域执行此操作,而只能对您管理下的域执行此操作。
对于其余的,只需使用例如 链接
You need to put some code into your website, as said in the documentation so you can't do it for the domain you want, just for domains under your administration.
For the rest, just can get the likes for a single URL, using, for example, this link
总喜欢 仅显示当前页面的喜欢,而不是整个网站,正如它所说的那样。尝试使用不同的网址。
Total Likes shows only likes for current page, not whole websites, as it says. Try it with different urls.