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. Enfim, pra quê ficar fazendo classe para arrumar um traste, só para ele livramento colocar coleira e privar de viver uma vida normal?E
    também no dia no qual você aprender a ser dona do seu nariz e não aceitar ordens de masculino ( enfim,
    no dia em que aprender a deixar de ser burra), nem
    vai precisar perder seu tempo afastando estas porcarias de sua
    vida!Solte a mulher ruim que existe em você e verá como sua vida vai melhorar.

  2. Have you ever considered about adding a little bit more
    than just your posts? I mean, what you say is basic and everything.

    Nonetheless think about if you added some good pictures or
    video clips to give your posts more, “pop”!
    Your content is superb however with images and clips, this site could certainly be among the
    most beneficial in its field. Great blog!

    Here is my web site … phone Psychic Reading

  3. Its ѕuch as you read mү mind! You appeаr to understand a
    lot abߋut this, such as you wrote the ebook in it oor something.
    I feel that yoou just could do ԝith а few % to drive
    the message home a lÑ–ttle bit, however instead of that, this is wonderful blog.
    A fantastic read. I’ll certaijnly be back.

    Also visit myy web blog ::

  4. Think about collecting as a pastime. These days you
    possibly can figure out what one thing is price online, so
    you can easily figure out the price of things after which accumulate them to get essentially the most in your cash.
    Check out eBay and different websites where you can auction of your
    valuables to get a good return.

    my blog train accessories brio

  5. I think this is one of the most significant info for me.
    And i’m glad reading your article. But should remark on few general
    things, The site style is ideal, the articles is really nice : D.
    Good job, cheers

  6. My spouse and I absolutely love your blog and find almost all of your post’s to be exactly I’m looking for.
    Would you offer guest writers to write content for you?
    I wouldn’t mind producing a post or elaborating
    on some of the subjects you write concerning here. Again, awesome web
    log!

  7. Hey I know this is off topic but I was wondering if you knew of any widgets I could
    add to my blog that automatically tweet my newest twitter updates.
    I’ve been looking for a plug-in like this for quite some time
    and was hoping maybe you would have some experience with something like this.
    Please let me know if you run into anything. I truly enjoy reading
    your blog and I look forward to your new updates.

  8. I’ve been browsing online more than 4 hours today, yet I never found any interesting article like yours.
    It’s pretty worth enough for me. In my opinion, if all
    website owners and bloggers made good content as yyou did, the internet will be a lot more useful than ever before.

    Here iss my site :: Paaul mccartney (Dick)

  9. Hello, i think that i noticed you visited my blog so i came to return the prefer?.I am trying to find things to enhance my site!I guess its good enough to make use of some of your concepts!!

    Here is my page :: wogcfun.org

  10. If you are going for most excellent contents like myself,
    only go to see this website daily because it presents quality contents, thanks

  11. If you smell gas or if the vehicle is unstoppable clear all persons outside the area.
    One of the examples of these common expenses that help keep
    you in the debt cycle will be the cable TV subscription. s crucial
    that sellers review loan documents having an attorney to produce an informed decision.

    Have a look at my web blog activated carbon air filter

  12. Sex during periods is akso healthy for a woman; because the orgaswm releases some of the
    muscular tension in the vagina, and will also “clean out”all ezcess fluids
    that might build up dduring the uuse of a tampon or pad.
    Shhe claimed Howard wanted her tto sleep in the same bed wirh him and ”was not happy
    I had chosen Mc – Crae ovesr him. Las Vegas, the city of sin,
    is a great plafe to rekindle the sexual spark in your
    relationship with your partner.

    Look at my page … sexe xxx (Bridgette)

  13. Thanks a lot for provіding individuals with remaгkably
    nice opportunity toо read inn detail from this web site. It
    is often so aաesome and also jam-packed with fun for me perѕonallу and my office mateѕ
    to search the blog particularly thee times evеry week tto read
    through tҺe fresh secret you have got. And definitelу, I am just ceгtainly fаscіnateԁ concerning the dɑzzling advice served Ьyy you.
    Certain 1 arᥱas in tthiѕ articⅼe аre certainly the moѕt impresѕivе we have all had.

    my wweb blog – loan services singapore

  14. Appreciation to my father who stated tto me on the topc of
    this wweb site, this website is actuallyy awesome.

    Stop by myy website; bst forex trading systems (Stanley)

  15. I simply could not depart your website before suggesting that I extremely loved the standard information an individual supply in your guests?
    Is gonna be again frequently in order to check up on new
    posts

  16. Durable goods reporting, home sale announcements, regularly scheduled forex news are the foundation of market flux, the Forex world.

    Businesses who stay informed about these happenings can use this information to
    make sure they make the right decisions for their companies.
    When you know Barca and Real are most likely going to win 5-0
    each week where is the excitement.

  17. Howdy fantastic blog! Does running a blog similar to this require a great
    deal of work? I’ve absolutely no understanding of programming but
    I had been hoping to start my own blog soon. Anyway, if
    you have any ideas or tips for new blog owners please share.

    I understand this is off subject but I just had to ask.
    Appreciate it!

  18. I lastly informed Katherine that I was going to stop working when we attain an hour and a half then stroll again the rest of
    the way, while she saved on operating.

  19. Hi I am so thrilled I found your blog, I really found you by mistake, while I was looking on Askjeeve for something else,
    Anyhow I am here now and would just like to say cheers for
    a tremendous post and a all round thrilling blog (I also love
    the theme/design), I don’t have time to go through it all at the minute
    but I have book-marked it and also included your RSS feeds, so when I have time I will be back
    to read more, Please do keep up the fantastic b.

  20. Great post. I was checking constantly this weblog and I am inspired!
    Extremely useful information specially the final section 🙂 I take
    care of such info much. I was seeking this particular information for a long time.
    Thank you and good luck.

    Feel free to surf to my page: CNC Plasma

  21. Greate post. Keep posting such kind of info on your site.
    Im really impressed by your blog.
    Hello there, You’ve performed an excellent job.
    I’ll definitely digg it and for my part recommend to my friends.
    I am sure they’ll be benefited from this web site.

    Here is my weblog charity

  22. I loved as much as you’ll receive carried out right here.
    The sketch is tasteful, your authored subject matter stylish.
    nonetheless, you command get bought an impatience over
    that you wish be delivering the following. unwell unquestionably come further formerly again as exactly the same nearly a
    lot often inside case you shield this hike.

    Feel free to surf to my page … wogcfun

  23. Very nice post. I just stumbled upon your blog and wanted photo to oil say that
    I have really enjoyed surfing around your blog posts.
    In any case I will be subscribing to your feed and I hope you write again very soon!

Leave a Reply