How add Facebook like button on Blogger (Blogspot) and how customize it.


Few days ago, facebook surprised us by launching a lot of social plugins, one of them, actually the most popular one yet is the famous like button,  In this tutorial you’ll learn how to add it to your blogger blog and you’ll learn how to customize. Change the verb, like or recommend, change it’s color and change it’s font.

STEP 1:

Add the button code it to your template script.

  • Log into your blogger account, then go to Design >> Edit Html.
  • Then check on Expand Widget Templates box.
  • Find the Code below and paste the Facebook like button script after it.
<div class='post-header-line-1'/>
  • If you didn’t find the code above in your template, Then try to find the following and paste the Facebook like button script before it.
<data:post.body/>
  • Facebook like button script.
<b:if cond='data:blog.pageType == &quot;item&quot;'> <iframe allowTransparency='true' expr:src='&quot;http://www.facebook.com/plugins/like.php?href=&quot; + data:post.url + &quot;&amp;layout=standard&amp;show_faces=false&amp;width=100&amp;action=like&amp;font=arial&amp;colorscheme=light&quot;' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:450px; height:40px;'/> </b:if> 
  • Create your own Facebook like button script Click Here

    • click on Save Template and you are done.
    STEP 2:
    Customize your Facebook like button.


    in the above code you can customize 3 Parts. and i’ve colored them to make it easy for you to recognize, in the above code change the following parts:
    • like this part controls the verb that appear on your button, keep it as you see or change it to recommend if you want.
    • Arial this part controls the font type, keep it or change it to one of the following:
    lucida+grande
    segoe+ui
    tahoma
    trebuchet+ms
    verdana
    • Light this part controls your button color theme, and you have three options
    Light
    Evil
    Dark
    • Update, How to make it appear on your home page.
    In the button code there are two parts you’ll need to remove to make this button appear on your home page, the first line and the last line, if you still don’t under stand, please see the following parts and delete it before pasting the code to your template.
    <b:if cond='data:blog.pageType == &quot;item&quot;'>
    </b:if>
    UPDATE
    if you want facebook like button individual blog post. follow below instructions.

    Paste below script at button of
    <b:includable id='post' var='post'>. this line.

    <iframe 
       allowTransparency='true' 
       frameborder='0' 
       scrolling='no' 
       expr:src='"http://www.facebook.com/plugins/like.php?href=" 
                 + data:post.url 
                 + "&amp;layout=standard&amp;show_faces=true&amp;"
                 + "width=530&amp;height=60&amp;action=like&amp;"
                 + "colorscheme=light"' 
       style='border:none; overflow:hidden; width:530px; height:60px'/>
    

    In case you have issues, here is the version with all the clarifying formatting removed and no line breaks:

    <iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&amp;layout=standard&amp;show_faces=true&amp;width=530&amp;height=60&amp;action=like&amp;colorscheme=light"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:530px; height:60px'/>
    

    Need More Help Just Ask In The Comments.

    26 comments:

    1. It's probably staring me in the face, but is there a way to get the 'Like' button to appear at the bottom of posts? I've followed the above instructions but it makes the button appear at the top of posts, and I'd prefer it to be at the foot. Thank you.

      ReplyDelete
    2. yes there is way @ matthew. paste Facebook script after/below this code
      <data:post.body/>c

      ReplyDelete
    3. That's worked a treat, thank you!

      ReplyDelete
    4. Now another problem... I wanted the 'Like' button to refer to individual blog posts, not to the blog as a whole. I followed some instructions on the Blogger help site and now it's gone all wonky. The Like button appears before the last line of my latest blog entry, and there is a large gap then before the footers of each post (written by, comments etc). Please help...? I simply want a Like button for each individual post, and for it to look neat. Thankyou.

      Http://ruddmakesense.blogspot.com

      ReplyDelete
    5. It looks so awful that I've reverted to default widget template and removed the Facebook Like button entirely. I would like to restore it, however, with your help. Thank you.

      ReplyDelete
    6. i want like button with every post that i post..but which code should i paste?blur me a little bit..

      ReplyDelete
    7. Hi, I am having problem with the message in Facebook. Clicking the Like button does add the message post into the Activity list but the post is missing hyperlink back to the website....

      See my blogger site:
      http://theonlyautumnleaf.blogspot.com/

      Can you help? Thanks in advance!

      ReplyDelete
    8. I am having the same issue as Autumn Leaf where the FB message does not link back to the blog. Thanks for any advice.

      ReplyDelete
    9. THANK YOU!!!!!!!! I spent about 3 hours (much time wasted on an extremely temperamental wireless connection... nevertheless!) trying to get the like button on individual posts.

      THANK YOU!!!

      ReplyDelete
    10. Okay, what did I do wrong? I followed every step and the only place the like button shows up is in the Blog Archives. I want them to show up on individual post. Help!

      Thank You

      http://MGHairDesign.blogspot.com

      ReplyDelete
    11. I was able to link the facebook button to individual posts, but it appears just before the post, while I'd like to add it at the bottom of each post (after date, labels, etc..)
      Is there any way I can do that?

      Thanks for your help!

      ReplyDelete
    12. Yes, I did it at the beginning of each post. Is it not better to put it at the end? any experience?

      ReplyDelete
    13. Thanks !
      I tried,and this result http://socknproxy.blogspot.com

      ReplyDelete
    14. HELP!!!!!!!!!!!!!!!!!! No one can help me!! I have being trying for days to add my FB like button for to the sidebar and I get a black rectangle!!! What is going on! I have tried different codes and everything I can think of. Please any help would be great...........

      ReplyDelete
    15. I have been trying and trying to get this to work but for some reason when I try to place it at the bottom of the post all I'm getting is a blank white box. Any thoughts??

      ReplyDelete
    16. Hi,

      thanks for the instructions - I have followed them exactly and unfortunately, only the header of the web page is displayed in the 'like' not the individual post. Any suggestions?

      ReplyDelete
    17. Hi! I added a like button to all of my posts without any problems. However, there is now a gap between the like button and the footer of each blog post (posted at 5:00...by me...3 comments...etc.). Before I added the button, the last line of each blog post sat right above the footer. Is there any way to eliminate this gap? Actually, while I'm thinking about it, is there any way to move the like button beneath the footer? In my case it would be right below "labels." Thanks!

      http://thegermanyblog.blogspot.com/

      ReplyDelete
    18. thank you for the information. i added the Like button to my blog. but is there a way when a person Likes the post on the blog that it will show up in the News Feed on FB vs just their Profile page?

      http://www.sylvialaughrin.blogspot.com

      ReplyDelete
    19. i have the same question/issue as Sid has above - i added the like button and it appears perfectly after each blog post, but i have the same spacing issue - any guidance on how to correct this would be much appreciated :)

      http://latexweb.blogspot.com

      ReplyDelete
    20. I've managed to add the like button to each post, though it refers to the whole blog and not to each specific post - how can i solve this?
      In addition - when one press the like button, it does not automatically appear in their facebook page, but only in my blog - is there a way to solve this as well?
      Many thanks,
      The Vagabundas

      ReplyDelete
    21. i would love to add the Like button for my overall blog... and i've read all the instructions but unfortunately i'm not as blog-savvy as i thought :(

      can someone please provide me idiot-proof instructions? Thanks very much!

      ReplyDelete

    Free Shipping on All Orders

    Media Partner

    rantop.com