Facebook and Twitter are going head to head in their attempts for web domination. Now facebook has released their “Like” button. The Facebook like button extends their like feature to other sites on the web. If the users are logged into their facebook account, then they can “like” or “recommend” a web page to all of their facebook friends as they are reading it from the site. In this article i will show you that how you can add facebook like button without installing any WordPress plugin. All you need to do is to insert this simple code in your WordPress blog:
Code:
<iframe src=”http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&layout=standard&show_faces=false&width=450&action=like&colorscheme=light” scrolling=”no” frameborder=”0″ allowTransparency=”true” style=”border:none; overflow:hidden; width:450px; height:60px;”></iframe>
There are other parameters and options for this plugin.
- If you want to show the friend icons under the button, then you should use the parameter:
show_face=true
- If you want to display the simple button with only the count and nothing else, then you want to use the parameter:
layout=button_count
- If you want a darker color scheme for your button, then you need to use the parameter:
colorscheme=dark
- If you want to change the text from Like to Recommend, then use the parameter:
action=recommend
You can customize the width of the iFrame as you like.
This tutorial will help you to put facebook like button without any help of plugin and will save you from installing a one more plugin in your WordPress blog. In the end, if you like this tutorial then you like WebGuide4U on Facebook.
Leave a Reply