Counter Keeps Returning to Zero
Hi,
Got a Facebook like button on every page of my website, they all have the same code (except the page url) and all work fine except the homepage where the counter keeps resetting to zero.
Any ideas Jason? And shouldn't the counter for each pages display the likes for each page instead of the same number for all the pages?
Here's the code
<div id="like">
<div id="FaceBookLikeButton">
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
var fb = document.createElement('fb:like');
fb.setAttribute("href","http://mydomain.com/index.php");
fb.setAttribute("layout","button_count");
fb.setAttribute("show_faces","false");
fb.setAttribute("width","100");
fb.setAttribute("font","verdana");
document.getElementById("FaceBookLikeButton").appendChild(fb);
//]]>
</script>
</div>
</div>