facebook-fan-box

This tutorial is for everyone who has already created a Facebook Fan Page. If have not created one, try making one. A Fan Box or Like Box allows your Blog visitors to like your Facebook fan page, without leaving your blog. It can also display faces of the “likers” on your blog. To add the fan box to blogger, follow these steps:

1. Find out your Facebook Fan Page URL. To do that, just visit your Facebook Fan Page, and copy the url in the address bar.

image

In my case it is http://www.facebook.com/bloggerplugins (The url which you see in the address bar when you visit your fan page.) .Copy this url from your address bar.

2. Visit This page http://developers.facebook.com/docs/reference/plugins/like-box

You have already copied the Facebook fan page url. Paste this into the Facebook Page URL field

image

Select the choices appropriately and you can see a live preview of the Like/Fan box.

3.Once you are satisfied with the looks of the Like Box, Click on the “Get Code” button

4. Copy the xfbml code which gets generated.

image

5. Now login to your Blogger account and go to Design > Page Elements

Click Add a Gadget Link and Add an HTML/JavaScript Gadget

image

6.Paste the generated code as the Gadget’s Content

image

and Save the Gadget.

7.Next you have to add the fb namespace to your template tag.Your template should have the specification for the fb tag that you have used. The following namespace declaration will take care of that. To declare the namespace, Go to Design/Template > Edit HTML and find

<html

and change it to

<html xmlns:fb="https://www.facebook.com/2008/fbml"

The following screenshot will help you out.

image This is necessary for all FBML widgets using the fb tag.  So if you have already added the namespace while adding some other FB plugin, then you can skip this.

8.Save the Template and you should see the Fan/Like Box on your blog’s sidebar.

Another variation

If you need a simpler Like button, without any extra decorations, then visit http://developers.facebook.com/docs/reference/plugins/like . In the code generator, paste your Facebook Fan Page’s url as the URL to Like and follow steps 3 to 5. Now you will get a simpler Like Button with count.

117 comments :

  1. thanks, i put this code with the "Facebook Share Button-http://www.bloggerplugins.org/2009/10/facebook-share-count-button-blogger.html", and this like box not working for me.
    maybe do you know why? because before that all worked perfectly

    ReplyDelete
  2. good one to use thanks for the post i like it

    ReplyDelete
  3. Thanks for sharing.. Just found a tutorial for which i was looking for..

    ReplyDelete
  4. Please not that a widget like this wil considerably slow down the loading of your Blogger site! Been having this widget for quite a while and had some annoyed visitors!

    ReplyDelete
  5. I use this feature on my page. Thanks for the info!

    ReplyDelete
  6. I used this like box, but I don't understand why the faces is not shown.. only the stream is shown.. www.bloggerclick.com

    ReplyDelete
  7. You can easily get all codes from facebook http://www.facebook.com/badges/. You can directly add the code to Blogger, Typepad or select other and copy/paste to any website/wordpress. In wordpress, create a Text widget and paste the code. I have done it in http://vision4life.in (left side bar). If it is helpful, you can reply through contact menu.

    ReplyDelete
  8. i dont even know how to put gadgets into my blog.

    ReplyDelete
  9. For about it, facebook have launch in here my friend
    http://www.facebook.com/pages/create.php
    And don't forget for look my fan page ;) :D
    http://www.facebook.com/pages/Prodigy-of-Head/122292581115426

    ReplyDelete
  10. I was searching for the same for my blog http://worknfunn.blogspot.com.
    Thanks for the guidance.

    ReplyDelete
  11. really that code works thanks for sharing man

    ReplyDelete
  12. how to make "become a fan" and "like" widget like u have in the bottom of ur post?? would u like to share it?

    ReplyDelete
  13. I have used the Facebook Like Box on my blog for quite a few months now, but since Facebook has made changes to the pages, it is no longer working on my blog.

    ReplyDelete
  14. yes i have followed the instructions and it works for me
    Can anyone tells me about how to add facebook widget to the blog
    http://infofaisalabad.blogspot.com/

    ReplyDelete
  15. There are some issues with it. If you are still signed on your facebook page while using it, it won't work, you'll get a blank block even just at the preview stage.

    But even if you sign off, the preview works, but when I put it on my blog, it just shows a generic "Follow us on facebook" page with no link to my page, not even a name. What am I doing wrong?

    My blog is at http://filmandempire.blogspot.com although I have removed the widget for now as it was not working

    ReplyDelete
  16. Oh, thank you! I was trying to edit the HTML coding to no avail! The box takes up a lot of vertical room. I wish there was a way to make it smaller. I suppose I could just use the basic button instead of the box. When I have more people liking my site it should look good though, so I'll leave it for now and see how it goes. Thanks so much!

    ReplyDelete
  17. I just get a white box- any reason why? Also- doesnt your addres have to have /pages/ in the url? Is this for a fan page or for a proflie? It doesn't work for me...
    www.forhuntersbyhunters.com

    ReplyDelete
  18. Thanks for the tutorial, I'll give it a try.

    ReplyDelete
  19. THANK YOUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU

    ReplyDelete
  20. Congratulations on the blog of note! Thanks for the helpful information. Very easy to follow your step-by-step guide.

    www.duncaninkuantan.blogspot.com

    ReplyDelete
  21. So, it was all easy, well-explained, etc... but the faces aren't shown. And in the html it says "show faces true" which, with my completely vague understanding of the mysteries of html, means that it should indeed be showing the faces.

    Any advice...?

    jill
    http://inbedwithmarriedwomen.blogspot.com

    ReplyDelete
  22. can u help me i have a problem in feed burner
    they are posting my whole feed in email i want to only post the headline and two three lines how can i do that pls help me my email morbi_style@yahoo.com

    ReplyDelete
  23. Thanks I'm trying to move away from the Follower button on blogger because people can't join if they don't have gmail or yahoo.the like button is less of a commitment

    ReplyDelete
  24. This script no longer works on Blogger. I had a badge and it got dropped by blogger. When I tried to redo it won't work. I think because FB upgraded their JAVAscript and blogger didn't. Do you know what's going on?

    ReplyDelete
  25. Thanks, the explanation was great and it made it really easy.

    http://tinastraveltrials.blogspot.com/

    ReplyDelete
  26. thanks for the information.....

    ReplyDelete
  27. Great. I Like it..

    thanks for the information.....

    ReplyDelete
  28. Great I like it very much....... thank you

    ReplyDelete
  29. I had a lot of trouble figuring out how to get the fixed height of the box to work out right on my blog...this might be something you could address to make thing easier for people. Thanks

    ReplyDelete
  30. Sure will use it for my blog. Thanks.. :)

    ReplyDelete
  31. I am not getting this to show up on my blog :( Any way you can tell me why??
    http://marshasspot.blogspot.com
    I was hoping to have it up when I post my next giveaway as one way to enter it will be to like my new fan page.
    Any help is appreciated! I see someone say they think that facebook upgraded something but that blogger didn't?

    Thanks!!

    ReplyDelete
  32. Nice info.... Thanx

    ReplyDelete
  33. Thanks - you are the only one that I found that explained this correctly!

    ReplyDelete
  34. I can't get it to work. It looks fine on the preview, but on my Blogger blog all I get is "Find us on Facebook" box like thing. It looks like it's half constructed, but like something is missing. I tried three time and am getting really frustrated. Now what?

    ReplyDelete
  35. Very Nice Information I am going to have one such box on my blog too

    ReplyDelete
  36. Great information & great tool. Thanks.

    ReplyDelete
  37. Hi, i use this too... but the show faces dosent work ;( is it broken?

    ReplyDelete
  38. Thanks, ur article make my blog seem nice and good job!!

    ReplyDelete
  39. thank you bloggers, this is very helpful for bloggers .... and assist in the competition

    ReplyDelete
  40. Hi, no face and like button showed..please advice..thanks

    ReplyDelete
  41. Hi! I followed your instructions, and even though the "live preview of the Like/Fan box" as you called it came out as it should be (ie directing people to my blog's Facebook page), when I copied the code into the HTML Gadget box and saved it, the actual Like Box on my blog just said "social plugin for Facebook" and takes anyone who clicks it to the Social plugins page on FB (http://developers.facebook.com/docs/plugins/)Any suggestions please? The same happens even when I copy the code straight into the HTML of the blog.

    ReplyDelete
  42. thanks.. it helps a lot
    http://theredjodie.blogspot.com/

    ReplyDelete
  43. Awesome Its Working......Keep Blogging...every one....:-)

    ReplyDelete
  44. not working for me. it just show "social facebook plug in"
    need help
    http://farahfarly.blogspot.com

    thank you

    ReplyDelete
  45. awesome tip i really searching on it

    ReplyDelete
  46. Thanks for the fantastic article. I learnt a lot in just two minutes :)

    ReplyDelete
  47. The like box is not working for my blog: eshayaris.blogspot.com

    I guess BloggerPlugins has also got some problem with the like box and hence has not implemented this feature in the site!!!!

    ReplyDelete
  48. Nice post bro...
    thanks for share with us...

    ReplyDelete
  49. Hi all,
    Can you help me? I tried to put like box in my blogger, but i have problem with the word " Could not retrieve id for the specified page. Please verify correct href was passed in." My URL is http://www.facebook.com/ngosblog.cambodia and i have changed from http://www.facebook.com/bloggerplugins . so I don't know my what is my URL. Can you help me?

    Thanks

    ReplyDelete
  50. hi thank for the tutorial, i success to make it.

    ReplyDelete
  51. mine really did not work and the coding that was already there and the coding on your was really different, at leas the line that i was suppose to change was not the same

    ReplyDelete
  52. @Janice - choose xfbml from the drop down instead of HTML5

    ReplyDelete
  53. :( when I try to edit my HTML it says "template-skin only available for templates version 2 and above" why is that..? please help

    ReplyDelete
  54. "template-skin only available for templates version 2 and above" why this comes up when I try to save HTML?

    ReplyDelete
  55. i tried this my blog bulbsandbubbles.blogspot.com and only a white box appears.. help please. i labelled the widget 'under construction' for now in case it needs some time to load from facebook.

    bulbsandbubbles.blogspot.com

    ReplyDelete
  56. Thank you!! I needed the step-by-step that you provided in order to be successful at getting this to work!

    ReplyDelete
  57. AWESOME~~ LOVE IT

    ReplyDelete
  58. Not working for me :( any other way please?

    ReplyDelete
  59. Yes! Finally i got it worked!... woooo! Thank you so much!

    ReplyDelete
  60. Hey, thanks for sharing the info. I installed this plugin on my blog but for some reason it automatically adds a scroll bar at the bottom. I have even played around with the width adjustment tool in the design template but that doesn't help! I basically want to get rid of the scroll bar, have a look here:

    http://kunalrajput.blogspot.com

    Any help would be appreciated. Thanks.

    ReplyDelete
  61. Didn't work for me. HELP :S
    thisistherealitarin.blogspot.com

    ReplyDelete
  62. yes it work for my blog http://sure2download.blogspot.com/

    ReplyDelete
  63. Brand New blog - I've tried a couple of times to add this in and it won't appear. Not sure where I am making the mistake. cleansecritic.com

    ReplyDelete
  64. I think I got it. Had to add the third box of code in.

    ReplyDelete
  65. @The Ripple Effect - your blog is showing a 404 error page for me. have you configured the custom domain properly?

    ReplyDelete
  66. i will definately use this feature in my blog...thnx bro.!!!

    ReplyDelete
  67. I think there have been some changes from 1st January 2012 and the changes to html template do not work properly. Any updates on that?

    ReplyDelete
  68. Thank you so much! You are such a great help!

    ReplyDelete
  69. thank you! i have already made it and running :)

    ReplyDelete
  70. please resolve this problem when i try http://hdworldgold.blogspot.com/

    Could not retrieve id for the specified page. Please verify correct href was passed in.

    ReplyDelete
  71. Thank you, thank you, thank you. I've been searching for over a week and finally found your site. Awesome tip. Worked great. Yay! (you are bookmarked :)

    ReplyDelete
  72. can you help me... please I don't know what to do. Where will I paste the code and how will it work after pasting. thanks.

    ReplyDelete
  73. Thanks a lot! These images are a bit outdated now, but I was able to figure things out and get my button in there.

    Not sure what to do for dinner?

    easyasbananas.blogspot.com

    ReplyDelete
  74. im kinda stuck at the html part... i put the fb tag next to the html but when i wanted to see it, it says that i need to close the XML code must be closed properly.. but when i erased the codes, everything was normal and the like thingy didnt appear... help me ):

    ReplyDelete
  75. I can't make it work i can't install this on my blog: http://300mbfilmss.blogspot.com/

    ReplyDelete
  76. I did that and it is working perfectly http://dobretesty.blogspot.com

    ReplyDelete
  77. Do you know if its work with the new template of blogger "Dynamic effect" if my translation is good.
    You can see the template here: http://lebredaweek.blogspot.fr/

    ReplyDelete
  78. Thanks sir for your great information. Thanks a lot.
    Computer dummy

    ReplyDelete
  79. I couldn't believe I followed your instructions and it messed up my blog.

    ReplyDelete
  80. thanksssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss

    ReplyDelete
  81. Thanxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

    ReplyDelete
  82. Nice post, excellent article. Really helpful & informative article.

    Find Everything About Search Engine Optimization

    http://seopips.blogspot.com/

    ReplyDelete
  83. very very thanx brother ; I have added like box www.mianshakir.blogspot.com

    ReplyDelete
  84. it's work, thank you very much for you help.

    ReplyDelete
  85. Excellent blog.You are sharing such a informative blog and this post gave to us lot of knowledge about fan box for blogger and after reading you post I will trying this.

    ReplyDelete
  86. Great little guide! I think all sites should have social media links these days, otherwise they're losing out on some valuable resources and free advertising. Imagine DubLi or eBay with such integrated features, for example.

    Facebook integration into your site is a nice feature. I especially liked the fact that you explained how to make the code validate. :)

    ReplyDelete