获取 Facebook 墙上共享的网址数量(不是 link_stat)
我的网站上有正确的 Facebook Like 按钮。 我的元看起来像这样:
<meta property="og:image" content="image url"/>
<meta property="og:site_name" content="site name"/>
<meta property="og:title" content="page title"/>
<meta property="og:url" content="page url" />
<meta property="og:description" content="page description" />
<meta property="og:type" content="article"/>
<meta property="fb:admins" content="my_user_id"/>
<meta property="fb:app_id" content="my_app_id"/>
元已正确插入&已验证(使用 Facebook linter)
我可以通过 fql 查询获得点赞计数值
SELECT share_count, like_count, comment_count, total_count FROM link_stat WHERE url="mysiteurl"
,一切正常,但这些值不包括 Facebook 墙上用户的点赞数。
例如,如果我在我的墙上分享了一个链接 (www.example.com/myurl),并且我的朋友或其他人喜欢了他们自己墙上的网址,则 www.example.com/myurl 上的喜欢计数不会反映这些新的喜欢。这不是缓存延迟问题。
在我看来,Facebook 上共享的 url 是独立存在的。
我想获得上面提到的点赞数。 感谢您的帮助。
I've Facebook like button correctly in my site.
My meta look like these:
<meta property="og:image" content="image url"/>
<meta property="og:site_name" content="site name"/>
<meta property="og:title" content="page title"/>
<meta property="og:url" content="page url" />
<meta property="og:description" content="page description" />
<meta property="og:type" content="article"/>
<meta property="fb:admins" content="my_user_id"/>
<meta property="fb:app_id" content="my_app_id"/>
Meta are properly inserted & verified (with Facebook linter)
I'm able to get like count value throught fql query
SELECT share_count, like_count, comment_count, total_count FROM link_stat WHERE url="mysiteurl"
It's all ok but these values don't include likes made from users on Facebook wall.
For example if I share a link (www.example.com/myurl) on my wall and my friends or someone else likes the url from their own wall, the like count on www.example.com/myurl doesn't reflect these new likes. It's not a cache delay issue.
It seems to me that, url shared on Facebook lives on its own.
I'd want to get the like count mentioned above.
Thanks for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
喜欢恰好包含您的链接的流项目(又名帖子/墙/提要/链接)与喜欢网址不同。
Liking a stream item (aka post/wall/feed/link) which happens to contain your link is not the same as liking a url.