Everything Else

How To Add A Facebook Like Button To Your Website

[Edit 03 Sep 2010 – Please also checkout my post How to Add a Facebook Like Box to Your Website]

Recently Facebook changed the language for Pages from “Fan” to “Like”.

In their words,

To improve your experience and promote consistency across the site, we’ve changed the language for Pages from “Fan” to “Like.” We believe this change offers you a more light-weight and standard way to connect with people, things and topics in which you are interested.

Fortunately, for those of us who had already added the Facebook Fan button to our sites,

.. the <Become a Fan> button automatically turned into a <Like> button,

Social Plugins

Shortly after Facebook released a new range of social plugins which compliment this new change in language.

These social plugins let you see what your friends have liked, commented on or shared on sites across the web. All social plugins are extensions of Facebook and are specifically designed so none of your data is shared with the sites on which they appear.

Facebook have now made it even easier to integrate these social plugins to your website or blog.. all you need to do is paste in a single line of HTML code and your site will be Facebook ready.

Like Button

The Like button lets users share pages from your site back to their Facebook profile with one click.

If you are using WordPress it is extremely easy to add a Like button to your pages. All it takes is to add a single line of code to your single.php file.

To do this click on Editor,

Click on single.php,

Now copy and paste the following code into this file (adjusting the height and width as necessary),
Facebook Like Buttonhtml4strict

[Edit 10/08/2010 – please amend the code from above to show “show_faces=” and NOT “show-faces=”]

I have pasted this code towards the top and bottom of single.php – that way it will appear at the top and bottom of each post that I create.

Check it out for yourself –> scroll to the top and bottom of this post.

That’s it.

It doesn’t get much easier than that!

Related Articles

Check Also
Close
Back to top button