I added facebook like button on my site. Everything is working fine two days before but now I m getting error when I clicked like button it gets liked and after 2-3 seconds it unlikes itself automatically. After finding on net I found facebook linter tool but problem is that when I put page’s url in it and run it, that page’s like button starts working fine. So what’s wrong with my site why this is happening and what linter tool do. Please help me.
This is the code that I used:
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php $pageurl ?>&send=false&layout=button_count&width=80&show_faces=false&action=like&colorscheme=light&font&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:80px; height:21px;" allowTransparency="true"></iframe>
In above code $pageurl is changes according to page.
Thanks……
The code is perfect but there is problem on Facebook’s end. I faced the same problem, this solution worked for me – FIX: Facebook Like Button Unlikes Itself.