If you’re using the Facebook XFBML Like button implementation and you are having issues with your like button not displaying, make sure to have the following in place:
- Your < HTML > opening tag has the following:
xmlns:fb="http://www.facebook.com/2008/fbml"xmlns:og="http://opengraphprotocol.org/schema/"
- JaveScript reference between your < Head > tags :
< script src=”http://connect.facebook.net/en_US/all.js#xfbml=1″ ></ script> - Add this tag after your opening < BODY > tag:
- < div id=”fb-root” >< /div >
- And then add your button:
- < fb:like href=”http://seomention.com” layout=”box_count” show_faces=”false” width=”450″ action=”recommend” font=”arial” >< /fb:like >
Thanks for posting this, I put my social media buttons in a and Facebook wouldn’t show up. This fixed it! However, it seemed I needed to have the script code both in the as well as near the button itself for this to work properly. Maybe just something odd with my site structure.
Also, you should warn people not to copy/paste the code directly as it contains spaces after the opening characters in the tags.
Thanks!
Thanks for the excerpt, keep it up.
I have issues with my own, had this working for 2weeks then it just wont show again on my site am not using the XFBML