-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Facebook like button resetting to 0 continuosly #88
Comments
@Durden81 does your initial HTML look something like this: <div class="social-buttons cf">
<a
href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fbrooklyn.lodgify.com"
class="socialite facebook-like"
data-href="http://brooklyn.lodgify.com"
data-send="false"
data-action="like"
data-layout="standard"
rel="nofollow" target="_blank">
<span class="vhidden">Like on Facebook</span>
</a>
</div> Emphasis on the |
@GawainLynch thanks for replying.
but still doesn't work.. |
Hmmm... The major difference I'm seeing in what we each posted is the classes on the wrapper div: <div class="social-buttons cf"> I have put that URL into my staging site (hardcoded) and I get 1 like which matches the JSON I get back from Faceplant's API: |
I found the problem... in the end it was a problem with the fact that the page that was receiving the likes returned a 301 and not a 200. (no matter what is stated data-href the page being liked needs to give a 200 or facebook will give back 0 likes.) |
Excellent! No problems for lending a hand, that is what open source is all about :-) |
You can see the problem in this url:
http://brooklyn.lodgify.com
It shows 0 while it should be 1. This problem started a week ago, it was working before with the same code.
There are more details in stackoverflow if you want to contribute the answer there:
http://stackoverflow.com/questions/23323678/facebook-like-always-reset-to-0
Thanks!
The text was updated successfully, but these errors were encountered: