Let's have a look at 3 ways to add a like button to your pages so that you can get that little extra social media coverage
The facebook recommended code is:
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<fb:like href="" layout="button_count" show_faces="false" width="180" font="arial"></fb:like>
But if you want to get validation, you need to make this pure javascript, and then if you don't like the document write method, there is yet another way to around this too.
Visit our page on the Like Button Code page for the code which lists all 3 of these methods on the one page and a little extra data you should know about maximizing it's use in seo.
The facebook recommended code is:
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<fb:like href="" layout="button_count" show_faces="false" width="180" font="arial"></fb:like>
But if you want to get validation, you need to make this pure javascript, and then if you don't like the document write method, there is yet another way to around this too.
Visit our page on the Like Button Code page for the code which lists all 3 of these methods on the one page and a little extra data you should know about maximizing it's use in seo.