How to Add a Facebook Like Button or Like Box

The Easiest Way to Add a Facebook Button to Your WordPress Site

In this post, I’ll explain the differences in the Facebook Like Button and the Facebook Like Box. I will also explain the step-by-step process of adding this functionality to your website using WordPress as an example.

Button vs Box

 
The Facebook Like Button is used for visitors of your website to ‘like’ a particular post, page, site or any other criteria a website has to offer. This is done by assigning a URL to ‘like’. Do not confuse this with a ‘Share’ button which allows Facebook users to share a post, video etc. with their Facebook friends.


I am currently using the Socialize plugin on the Ask Adam League that is running on WordPress.

The Facebook Like Button has some great advantages. It allows users of the Facebook community to ‘like’ something which in turn shares that something and broadcasts it out to all of their Facebook friends via their News Feed. Also, this something that they like will remain on their profile for other people to see and visit.

The Facebook Like Box on the other hand allows visitors to ‘Like’ a Facebook Fan Page. It also has other functions such as showing the faces of people on Facebook who like the Fan Page and it can also display the latest post on the Fan Page.

Important:

An interesting note here is that you can use the Facebook Like Button as a Facebook Like Box but only a Facebook Like Box can be used as a Facebook Like Box. This is how it works. In the Facebook Like Box Generator you are prompted to add a Facebook Page URL in the respective field pigeonholing the developer into using the Facebook API strictly for users to ‘like’ a Facebook Page. However, in the Facebook Like Button Generator the user is allowed to add any URL they want. This makes it possible for users to ‘like’ the corresponding page that the developer is suggesting. How a Facebook Like Button can be used as a Facebook Like Box is simple; add a Facebook URL to the URL field and how you are on your way to making a Facebook Like Button that when clicked will allow a Facebook user to ‘like’ your Facebook page. For example, the Ask Adam League currently has a Facebook Like Button on the site. When clicking on this Like Button, the visitor will be Liking the Facebook Fan page for the Ask Adam League. They will also be able to see other friends of theirs that like the Ask Adam League Facebook Fan Page.

How to Add a Facebook Like Button to a WordPress Site

Adding either the Facebook Like Box or Button is very similar so instead of writing War and Peace here I’ll show you the steps for the Like Button.
Notes: These steps include using the code from the Facebook Developers website and not a WordPress plugin as I’ve found many of the plugins to be confusing or very spotty with their functions.
These steps will show you how to add a Facebook Like Box to your WordPress sidebar using a text widget; the simplest way I have found to add the Like Button.

Generate the Code:

  1. Go to the Facebook Like Button generator. This is where you will set the parameters for your Facebook Like Button and generate the code for your WordPress widget.
  2. The first step for generating the code is to get the URL for your page. I will choose to use the Ask Adam League Facebook page in this example since I want my site visitors to ‘like’ my Facebook page. Just visit the page and grab the full URL there and paste it into the ‘URL to Like’ field. (I’ve noticed that Firefox 3 on my Mac did not generate the Like Button example. It wasn’t until I updated to Firefox 4 that this happened).
  3. Select the different parameters for your Like Button such as pixel width and color scheme. You can also toggle on or off Faces which just displays the faces of the users who like your page.Click ‘Get Code’ and you’ll be presented with two different types of code; iFrame and XFBML. XFBML works for me (I’ll let the coder community explain the differences).
  4. Copy the XFBML code.

Insert the Code:

  1. Login to your WordPress CMS and go to ‘Widgets’ under the ‘Appearance’ pulldown on the right.
  2. Here you’ll have all of your widgets available that can be installed in your sidebar. If you don’t know what these do just think of them as little applications that do things on your sidebar.
  3. Grab the ‘Text’ widget and drag-and-drop it to anywhere you want the Facebook Like Button to be with all of your other widgets on the sidebar respectively. (if there is currently a text widget on your sidebar that you would like to install the Facebook Like Box code to with some other code there will be no problem at all).
  4. Crack open the Text widget by clicking on the pulldown. Your text widget will open up exposing the field where you will enter the code.
  5. Paste the code that you copied from the code generator.
  6. Click ‘save’.
  7. Bring up the page(s) that has your new Facebook Like Button to check it out.

Yeah yeah. I know we only have 12 people who like us on Facebook. Give us a sec.
Now anyone that visits your site will be able to like your Facebook Fan page. You can follow these same steps with the Facebook Like Box generator to make a Like Box if you wish.

Send me a comment if you guys have any questions. Good luck!

Note: My first time adding the Like Button it took almost 2 hours for it to show up on my page. Whether it took the Facebook API a million years to work or whatever else was going on I do not know.

11,483 Replies to “How to Add a Facebook Like Button or Like Box”

  1. Cool blog! Is your theme custom made or did you download it from somewhere?

    A theme like yours with a few simple tweeks would really make my blog stand out.
    Please let me know where you got your design. Cheers

  2. I used to be suggested this blog by way of my cousin. I’m not sure whether this publish is written by
    way of him as no one else understand such exact about my trouble.
    You’re wonderful! Thanks!

  3. Its like you read my mind! You appear to understand so much approximately this, like you wrote the
    e-book in it or something. I believe that you just could do with a few % to power the
    message house a bit, however instead of that, this is magnificent
    blog. An excellent read. I will definitely be
    back.

  4. Wonderful items from you, man. I’ve take into account your stuff previous to and you are just extremely fantastic.
    I really like what you have got right here, really like
    what you are saying and the best way during which you say
    it. You’re making it enjoyable and you still care for to stay it sensible.
    I can’t wait to learn far more from you. That is actually a terrific site.

  5. Sweet blog! I found it while browsing on Yahoo News.
    Do you have any suggestions on how to get listed in Yahoo News?
    I’ve been trying for a while but I never seem to get there!

    Many thanks

  6. whoah this blog is fantastic i love studying your posts.
    Keep up the great work! You realize, many persons are searching
    around for this info, you could aid them greatly.

  7. Yesterday, while I was at work, my cousin stole my iphone and tested to see
    if it can survive a 30 foot drop, just so she can be a youtube sensation. My iPad is now broken and she has 83 views.
    I know this is completely off topic but I had to share it with someone!

    Also visit my blog – best seo in california

  8. After study a couple of of the weblog posts on your web site now, and I really like your way of blogging. I bookmarked it to my bookmark website listing and can be checking back soon. Pls try my web page as properly and let me know what you think.
    [url=http://roberttierrez.blogspot.com/]jahnnyelPa[/url]

  9. Have you ever considered about including a little bit more
    than just your articles? I mean, what you say is important and everything.
    Nevertheless think of if you added some great visuals or video clips to give your posts more,
    “pop”! Your content is excellent but with images and clips, this website
    could certainly be one of the very best in its niche.
    Excellent blog!

    Stop by my site … mommy makeover san antonio

  10. Hi there! I could have sworn I’ve visited this website before but after looking at many of the articles I realized it’s new to me.
    Nonetheless, I’m definitely delighted I stumbled upon it
    and I’ll be book-marking it and checking back frequently!

    Review my web page: business

  11. This practices a statement by GREAT BRITAIN Publisher
    505 Games, announcing the fact that the game they are right
    now developing for PSP Vita, that’s Supremacy MMA, will end up being arriving in Fall 2011.
    All game news on Examiner can be followed at the Game On Facebook page and Twitter feed.
    The Queen of Edenia symbolizes ethereal nature and her aerial magic can be quite
    devastating if used in the right way.

    My web page: mortal kombat x cheats

  12. Even if we know the sources how do we get access
    to those sources. One example of an essay is the comparison, or compare and contrast essay.
    s “first impression” in the eyes of the admission board.

  13. Pretty portion of content. I just stumbled upon your weblog and in accession capital to assert that I get
    in fact loved account your blog posts. Any way I’ll be
    subscribing on your feeds or even I fulfillment you
    access persistently rapidly.

    Have a look at my site construction camera

  14. This stresses the necessity for companies to rent by far the most ideal writers possessing highly recommended expertise, data and adventure.
    Cheap essays ought to be supplied to clientele whatsoever situations.

    Solution: Never directly copy someone else’s words unless you have given the author
    credit.

  15. はじめまして。
    空き家を換金するときには、あらかじめ妥当な金額を調べておかないととんでもない損をしてしまうかもしれません。
    わが家も以前、土地を売却したのですが、近くの不動産業者に見積もってもらった相場とちゃんと調査した値段を比べたら300万円も差があってびっくりしたことがあります。
    ちゃんと調べると聞くと面倒そうですが、実はネットを利用すればかんたんなものです。一括査定サイトを使うだけです。
    たったそれだけで数百万円も手に入れるお金が違うのですから、絶対に使うべきですよね。利用は完全に0円でほんの1分程度で終わります。土地を売る前に知っておいて良かったと本当に思っています。

  16. thank you for this post, I am a big big fan of this internet site would like
    to keep updated.

    Also visit my weblogg … web page (Kai)

  17. It is believed that credit small business loans is wide,
    it can be performed through the European Commission’s plan erupted after finance ministers.

  18. Hi there Dear, are you genuinely visiting this site on a regular basis, if so after
    that you will definitely take good knowledge.

  19. It is perfect time to make some plans for the future and it’s time to be happy.
    I’ve read this post and if I could I want to suggest you some interesting things or tips.
    Maybe you can write next articles referring to this article.
    I desire to read even more things about it!

    My web site: Shipping Boxes

  20. Some lenders stÑ–puâ…¼ate that their company wiâ…¼l be responsible for releasÑ–ng thhe checks representing the
    amount to be paid to the home improvement supplies comâ²£any or
    too thе contractor. Don’t Æ…e concerneÉ— abouht size as you can do well with whatеver sized space you havᥱ.
    One notablе tiⅾbit of trivia is that Searrs was appгoached tо
    sponsor the show which would’ve put Ϲгaftsman tools in the hands of
    Tim “The Toolman” Taylor (as opÑ€oÑ•ed to the fictÑ–onal
    “Binford” brand), but Sears rejected the offer because they feared Tim Allen’s prior conviction on a drug charge might be interpretsd as unfriendly
    to families (funnу, since Home Improvement later fell undeг the moniker of thе Walt Ꭰisney
    Comρany).

    my webpagе:

  21. I think that everything published made a great deal of sense.
    However, what about this? what if you added a little content?
    I ain’t suggesting your content is not good, however what if you added a post title that grabbed people’s
    attention? I mean How to Add a Facebook Like Button or
    Like Box | Donald Sinatra is a little boring. You should look at Yahoo’s
    front page and watch how they create post titles to grab viewers
    interested. You might try adding a video or a related pic or
    two to get readers interested about what you’ve written. In my opinion, it might bring your posts a little livelier.

    Have a look at my weblog – Baltimore Web Development

  22. Hi, i believe that i noticed you visited my website thus i got here to go back the choose?.I am
    attempting to to find things to enhance my web site!I guess its ok to use some of your ideas!!

Leave a Reply