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.
- Backup your Templates (Don't know click here)
- 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 == "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>
- Create your own Facebook like button script Click Here.
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.
<b:if cond='data:blog.pageType == "item"'>
UPDATE</b:if>
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 + "&layout=standard&show_faces=true&" + "width=530&height=60&action=like&" + "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 + "&layout=standard&show_faces=true&width=530&height=60&action=like&colorscheme=light"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:530px; height:60px'/>
Need More Help Just Ask In The Comments.
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.
ReplyDeleteyes there is way @ matthew. paste Facebook script after/below this code
ReplyDelete<data:post.body/>c
That's worked a treat, thank you!
ReplyDeleteNow 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.
ReplyDeleteHttp://ruddmakesense.blogspot.com
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.
ReplyDeleteSee update brother.
ReplyDeleteThanks!
ReplyDeletei want like button with every post that i post..but which code should i paste?blur me a little bit..
ReplyDeleteHi, 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....
ReplyDeleteSee my blogger site:
http://theonlyautumnleaf.blogspot.com/
Can you help? Thanks in advance!
I am having the same issue as Autumn Leaf where the FB message does not link back to the blog. Thanks for any advice.
ReplyDeleteTHANK 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.
ReplyDeleteTHANK YOU!!!
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!
ReplyDeleteThank You
http://MGHairDesign.blogspot.com
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..)
ReplyDeleteIs there any way I can do that?
Thanks for your help!
Yes, I did it at the beginning of each post. Is it not better to put it at the end? any experience?
ReplyDeleteVery helpful! Thanks!!
ReplyDeleteVery helpful! Many thanks!
ReplyDeleteThanks !
ReplyDeleteI tried,and this result http://socknproxy.blogspot.com
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...........
ReplyDeletesend me your blog url!!
ReplyDeleteI 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??
ReplyDeleteHi,
ReplyDeletethanks 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?
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!
ReplyDeletehttp://thegermanyblog.blogspot.com/
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?
ReplyDeletehttp://www.sylvialaughrin.blogspot.com
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 :)
ReplyDeletehttp://latexweb.blogspot.com
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?
ReplyDeleteIn 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
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 :(
ReplyDeletecan someone please provide me idiot-proof instructions? Thanks very much!