I've been trying to implement a Facebook Like button on my blog like this:
$("#fblike").append(" <iframe src='http://www.facebook.com/plugins/like.php?app_id=217624258276389&" + window.location.href + "&send=false&layout=box_count&width=50&show_faces=false&action=like&colorscheme=light&font&height=60' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:50px; height:60px;' allowTransparency='true'></iframe>");
And adding this to the <head>
of my HTML source file:
<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script>
The problem is that when I try to test the Like button it shows 1 instead of 0 and a second later goes back to 0. Nothing changed at my Facebook profile neither. What's wrong and how to correct this?
PS: I'm running this on a localhost server, in my case http://nathan-camposs-macbook-pro.local/~Nathan