Sunday, June 30, 2013

Facebook Like/Fan Box For Blogger

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
.
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 visithttp://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.

115 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
    Reply
  2. good one to use thanks for the post i like it
    Reply
  3. Thanks for sharing.. Just found a tutorial for which i was looking for..
    Reply
  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!
    Reply
  5. I use this feature on my page. Thanks for the info!
    Reply
  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
    Reply
  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.
    Reply
  8. i dont even know how to put gadgets into my blog.
    Reply
  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
    Reply
  10. I was searching for the same for my blog http://worknfunn.blogspot.com.
    Thanks for the guidance.
    Reply
  11. really that code works thanks for sharing man
    Reply
  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?
    Reply
  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.
    Reply
  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/
    Reply
  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
    Reply
  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!
    Reply
  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
    Reply
  18. Thanks for the tutorial, I'll give it a try.
    Reply
  19. THANK YOUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
    Reply
  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
    Reply
  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
    Reply
  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
    Reply
  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
    Reply
  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?
    Reply
  25. Nice Explanation. Thank you.
    Reply
  26. Thanks, the explanation was great and it made it really easy.

    http://tinastraveltrials.blogspot.com/
    Reply
  27. thanks for the information.....
    Reply
  28. Great. I Like it..

    thanks for the information.....
    Reply
  29. Great I like it very much....... thank you
    Reply
  30. 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
    Reply
  31. Sure will use it for my blog. Thanks.. :)
    Reply
  32. 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!!
    Reply
  33. Nice info.... Thanx
    Reply
  34. Thanks - you are the only one that I found that explained this correctly!
    Reply
  35. 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?
    Reply
  36. Very Nice Information I am going to have one such box on my blog too
    Reply
  37. Great information & great tool. Thanks.
    Reply
  38. Hi, i use this too... but the show faces dosent work ;( is it broken?
    Reply
  39. Thanks, ur article make my blog seem nice and good job!!
    Reply
  40. thank you bloggers, this is very helpful for bloggers .... and assist in the competition
    Reply
  41. Hi, no face and like button showed..please advice..thanks
    Reply
  42. wow thanks alot tis works
    Reply
  43. 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.
    Reply
  44. thanks.. it helps a lot
    http://theredjodie.blogspot.com/
    Reply
  45. Awesome Its Working......Keep Blogging...every one....:-)
    Reply
  46. not working for me. it just show "social facebook plug in"
    need help
    http://farahfarly.blogspot.com

    thank you
    Reply
  47. awesome tip i really searching on it
    Reply
  48. Thanks for the fantastic article. I learnt a lot in just two minutes :)
    Reply
  49. 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!!!!
    Reply
  50. Nice post bro...
    thanks for share with us...
    Reply
  51. 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
    Reply
  52. hi thank for the tutorial, i success to make it.
    Reply
  53. 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
    Reply
  54. @Janice - choose xfbml from the drop down instead of HTML5
    Reply
  55. :( when I try to edit my HTML it says "template-skin only available for templates version 2 and above" why is that..? please help
    Reply
  56. "template-skin only available for templates version 2 and above" why this comes up when I try to save HTML?
    Reply
  57. 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
    Reply
  58. Thank you!! I needed the step-by-step that you provided in order to be successful at getting this to work!
    Reply
  59. AWESOME~~ LOVE IT
    Reply
  60. Not working for me :( any other way please?
    Reply
  61. Yes! Finally i got it worked!... woooo! Thank you so much!
    Reply
  62. 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.
    Reply
  63. merci pour le partage de l'info
    Reply
  64. Awesome Its Working.. thank you
    Reply
  65. Didn't work for me. HELP :S
    thisistherealitarin.blogspot.com
    Reply
  66. yes it work for my blog http://sure2download.blogspot.com/
    Reply
  67. 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
    Reply
  68. I think I got it. Had to add the third box of code in.
    Reply
  69. @The Ripple Effect - your blog is showing a 404 error page for me. have you configured the custom domain properly?
    Reply
  70. i will definately use this feature in my blog...thnx bro.!!!
    Reply
  71. 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?
    Reply
  72. Thank you so much! You are such a great help!
    Reply
  73. thank you! i have already made it and running :)
    Reply
  74. 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.
    Reply
  75. 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 :)
    Reply
  76. 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.
    Reply
  77. 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
    Reply
  78. 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 ):
    Reply
  79. I can't make it work i can't install this on my blog: http://300mbfilmss.blogspot.com/
    Reply
  80. I did that and it is working perfectly http://dobretesty.blogspot.com
    Reply
  81. 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/
    Reply
  82. Thanks sir for your great information. Thanks a lot.
    Computer dummy
    Reply
  83. I couldn't believe I followed your instructions and it messed up my blog.
    Reply
  84. thanksssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
    Reply
  85. Thanxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    Reply
  86. Nice post, excellent article. Really helpful & informative article.

    Find Everything About Search Engine Optimization

    http://seopips.blogspot.com/
    Reply
  87. very very thanx brother ; I have added like box www.mianshakir.blogspot.com
    Reply
  88. it's work, thank you very much for you help.
    Reply
  89. 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.
    Reply

No comments:

Post a Comment