I have an iframe FB like/share button. Once I like it, it stays at 1 but after a few hours it always resets to 0. If I press one of my like/share buttons that other people liked successfully (25), the counter resets to 0!
<iframe
src="//www.facebook.com/plugins/like.php?href={urlencoded_url_here}&width=135&layout=button_count&action=like&show_faces=false&share=true&height=21"
scrolling="no"
frameborder="0"
style="border:none; overflow:hidden; width:135px; height:21px;"
allowTransparency="true"></iframe>
Why does this happen?
Additional information:
Currently I'm testing that in the past FB didn't encode !
character to %21
but now when I paste an URL containing #!
the "Get code" part shows that they encoded exclamation mark as well. JS and PHP doesn't do this with their encodeURIComponent()
and urlencode()
, respectively.
There seems to be a bug at Facebook currently, which affects the share count values/consitency.
Have a look at the bug report here: https://developers.facebook.com/bugs/684361601632430