My facebook like counter always reset to zero

心已入冬 提交于 2019-12-11 01:18:06

问题


I've installed Facebook like counter in each article of my webpage. The question is probably the same as This Thread. Unfortunately, my like counter keep vanishing so often, for example, if you guys look into this page, all of the counters in the first page were not in zero (Most of them are 10++ like). I captured my web display last Sat to compare with today in this link.I have no idea at all. Actually, the code I've used is just below in each article together with meta tag

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"
xmlns:og="http://ogp.me/ns#" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" 
                lang="en" dir="ltr">

<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.mevblog.com%2Fmev%2Fnode%2F780&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=60" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:60px;" allowTransparency="true"></iframe>

Any suggestion would be greatly appreciated.


回答1:


I believe it is because of the og tags on that page.

http://www.mevblog.com/mev/node/780

vs

http://www.mevblog.com/mev/play-learn-plearn-museum-siam

See: http://graph.facebook.com/10150777694150224

And see: http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.mevblog.com%2Fmev%2Fnode%2F780

If you change your url iframe to be the canonical one, does it work better?



来源:https://stackoverflow.com/questions/8988170/my-facebook-like-counter-always-reset-to-zero

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!