问题
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&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&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