Sunday, 10 July 2011
Facebook Like or Recommend Button For Blogger
Do you like this story?
Facebook has come up with a new set of Social plugins which enable you to provide engaging social experiences to your users with just a line of HTML. The Facebook Like Button is One of them. You can see a demo of the like button on this page. The Facebook like button will allow your readers to quickly share your posts with their Facebook Friends. You can also get to know how many people liked your Blog Post .
Follow this Steps :
1. Login to your Blogger Account and go to Layout > Edit HTML and click on the check box which says “Expand Widget Templates”
2. Look for <data:post.body/> and immediately after that place the following code.
3. Save the template and you should see the Like Button Below each of your posts.
b) Try changing colorscheme=light to colorscheme=dark or colorscheme=evil
c) You can change the font by editing the font=arial parameter. You can change it to any of
Follow this Steps :
1. Login to your Blogger Account and go to Layout > Edit HTML and click on the check box which says “Expand Widget Templates”
2. Look for <data:post.body/> and immediately after that place the following code.
<!-- Facebook Like button by Best2know-->This code will show the Like Button on Post pages only. If you want to display it everywhere, then remove the two lines of code in red.
<b:if cond='data:blog.pageType == "item"'>
<iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&layout=standard&show_faces=false&width=100&action=like&font=arial&colorscheme=light"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:450px; height:40px;'/>
</b:if>
3. Save the template and you should see the Like Button Below each of your posts.
Optional Customisations
a) Now try changing action=like to action=recommend in the code and you will see something like .b) Try changing colorscheme=light to colorscheme=dark or colorscheme=evil
c) You can change the font by editing the font=arial parameter. You can change it to any of
- font=lucida+grande
- font=segoe+ui
- font=tahoma
- font=trebuchet+ms
- font=verdana
This post was written by: kashif
For Suggestions and complains email us at pakcompany@yahoo.comTwitter
Subscribe to:
Post Comments (Atom)
0 Responses to “Facebook Like or Recommend Button For Blogger”
Post a Comment