facebook-logoFacebook like button is a great way to allow people to share your posts with their Facebook friends. And to express their liking. I added like button to this blog and found it truly useful. Check out the working button at the end of this post.

If you would like to add Like button to your blog, simply copy and page the below code to desired place where you want Like button to appear. The best place I recommend to put like button is below the content.

<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink()); ?>&amp;layout=standard&amp;show-faces=true&amp;width=530&amp;height=60&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:530px; height:60px"></iframe>

To place Like button below the content follow the procedure:

1.) Copy the above code.

2.) Goto Dashboard -> Appearance -> Editor -> Single.php

3.) And paste the above copied code below the following line in your Single.php file –

<?php the_content(); ?>

4.) Update file.

You are done! Open any of your posts and check whether the button is working properly.