Facebook Like button released on Apr. 21st 2010. Facebook’s social plugins were integrated into more than milions of  websites.
This number will increaze by the time.
If you want to add the facebook like button in your wordpress website, I recomend not to use any plugin because that will be very easy without adding any plugin.

Just open your theme folder and in that you will find the single.php and index.php file. Open that files and put following code in that file.

Befor following title line you can put the code. Like as follows:

<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:30px"></iframe>

Following are the custom setting for changing the facebook like UI. You change that as per your requirment.
if you like to show the faces of your friends, change the part “show_faces=false” to “show_faces=true”

If you like to show the label of the button as “Recommend“, change the part of the code “action=like” to “action=recommend”

I hope this will help you to implement the “Like” button on your WordPress Posts! Have fun and drop me a line at twitter or you can click on the “Like” button on the top of this post

9 Responses to “Add the Facebook LIKE button to WordPress blogs”

  1. [...] This post was mentioned on Twitter by wordpressapi. wordpressapi said: Add the Facebook LIKE button to WordPress blogs http://goo.gl/fb/65pDe [...]

  2. [...] Se você quer promover seu site criado com o WordPress para que todos os usuário possam lê-lo também através de links de seus visitantes você pode adicionar um botão de “like” facilmente. [...]

  3. Excellent and very thoughtful post! I really appreciate the time and effort you put in every single one of your posts, and finally decided to drop a comment on one of them! If you got some extra time on your hands and looking to improve your search engine rankings in the new Google Caffeine search results take a look at the Google Caffeine eBook…

    Anyways, good luck on your blog, and feel free to check out : Google Caffeine

    Thanks so much!

    All the best,
    Dino Vedo

  4. Dear admin, thnx for sharing this blog post. I found it wonderful. Best regards, Victoria…

  5. Aw, this was a really quality post. In theory I’d like to write like this also – taking time and real effort to make a good article… but what can I say… I procrastinate alot and never seem to get anything done… Regards

  6. vigrx plus says:

    Hey man, was just browsing through the internet looking for some information and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject. Bookmarked this page, will come back for more. You, my friend, ROCK!!!

  7. I’ve seen many sites and I can definitively say that this one is my absolute top pick. Favorited, Dugg, and I joined the RSS subscription. Thanks!

  8. Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can’t wait to read lots of your posts. . . .

Leave a Reply

Wordpressapi is developer code book.
wordpressapi on Facebook
© 2010 Wordpressapi. All Rights Reserved. Reproduction without explicit permission is prohibited.