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. Hi just wanted to give you a quick heads up and let you know a few of the pictures aren’t loading properly.
    I’m not sure why but I think its a linking issue.

    I’ve tried it in two different internet browsers and both
    show the same outcome.

    Here is my website: Dr. Yaron Ziv

  2. Hello there! I could have sworn I’ve visited your blog before but after going through many of
    the articles I realized it’s new to me. Nonetheless,
    I’m definitely pleased I came across it and
    I’ll be bookmarking it and checking back often!

    Visit my web site – billing app

  3. If you had been supplied a 10 yr mortgage with
    a hard and fast rate of 6.49% APR, and a hybrid mortgage
    with a beginning charge of 5.sixty four%, the hybrid possibility can be the higher deal in the event you’re
    intent on paying it off shortly.

  4. Wow! This blog looks just like my old one! It’s on a completely different topic but it has pretty much the
    same layout and design. Superb choice of colors!

    Here is my web site whangamata

  5. Thank you for another informative web site. Where else may I
    get that kind of information written in such an ideal means?
    I’ve a venture that I’m simply now operating on, and I’ve been on the look out for
    such information.

    Stop by my web blog – SOEG JOBS

  6. I have read so many articles oon the topic of the blogger lovers
    except this article iss in fact a fastidious paragraph, keep it up.

    my web site … winamax 100€ remboursé (Phillis)

  7. I’m curious to find out what blog system you’re working with?

    I’m experiencing some small security issues with my latest blog and I’d like to find something more safe.
    Do you have any solutions?

  8. Hello there! This post couldn’t be written any better! Reading this post reminds me of my old room mate!
    He always kept talking about this. I will forward this write-up to him.

    Pretty sure he will have a good read. Thank you for sharing!

  9. In your appreciated need to Melanya, you are going
    to have the ability to go through a substantial amount of info, read through charts, as
    well as uncover the considerable tasks offered in the Rhodope Mountain ranges.

  10. Great post. I was checking constantly this blog and I am impressed!
    Extremely helpful info specifically the last
    part 🙂 I care for such information much. I was looking for
    this certain information for a very long time.
    Thank you and best of luck.

    my web page; como comprar viagra

  11. Write more, thats all I have to say. Literally, it seems as though you relied on the
    video to make money on youtube your point.
    You definitely know what youre talking about, why waste your intelligence on just posting videos to your site when you could be giving us something informative
    to read?

  12. We’re a group of volunteers and opening a new scheme in our community.
    Your website provided us with valuable info to work on. You’ve done
    an impressive job and our entire community will be thankful to you.

    Also visit my homepage – verkopers

  13. Terrific article! This is the type of info that are meant to
    be shared across the internet. Disgrace on Google for not positioning this post upper!
    Come on over and visit my website . Thanks =)

    Here is my homepage dslr 360 rig

  14. Write more, thats all I have to say. Literally, it seems
    as though you relied on the video to make your point.
    You clearly know what youre talking about, why throw away your intelligence on just posting videos to your weblog
    when you could be giving us something informative to read?

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

  16. Excellent article. Keep writing such kind of info on your blog.
    Im really impressed by your blog.
    Hello there, You have performed a fantastic job. I will definitely digg it and individually
    suggest to my friends. I am sure they will be benefited from this site.

  17. I take pleasure in, cause I found just what I used to
    be taking a look for. You’ve ended my 4 day lengthy hunt!
    God Bless you man. Have a nice day. Bye

  18. Today, I went to the beach with my kids. I found a sea shell and gave it to my
    4 year old daughter and said “You can hear the ocean if you put this to your ear.” She placed the shell to
    her ear and screamed. There was a hermit crab inside and it pinched her ear.
    She never wants to go back! LoL I know this is totally off topic but I had to tell someone!

  19. Do you mind if I quote a few of your posts as long as I provide credit and sources back
    to your blog? My blog is in the exact same niche as yours and my visitors would truly
    benefit from some of the information you provide here.
    Please let me know if this alright with you. Thanks!

    Feel free to surf to my blog post – restaurant software

  20. I’m not sure where you’re getting your information, but good topic.
    I needs to spend some time learning more or understanding more.
    Thanks for great information I was looking for this information for my mission.

  21. You’ll now be able to use matchmaking to find games over the internet.
    Thoughts: Anyone who has participated in the Overwatch Hack beta knows
    Bungie is looking to leave a lasting impression and go out
    with a bang. Whether or not you’ll like this map really depends on the game types you like to play.

    my web site shadowrun returns shaman

  22. An outstanding share! I have just forwarded this onto a co-worker who
    had been doing a little research on this. And he actually bought
    me dinner due to the fact that I found it for him… lol.
    So let me reword this…. Thank YOU for the meal!! But yeah,
    thanx for spending some time to discuss this topic here on your blog.

    Also visit my web blog … restaurant software

  23. Hello there! I know this is kind of off topic but I
    was wondering which blog platform are you using for this website?
    I’m getting fed up of WordPress because I’ve had problems with hackers and I’m looking at
    options for another platform. I would be awesome if you could point me in the
    direction of a good platform.

    Also visit my web site affordable 360 VR Camera

  24. I’m really inspired with your writing talents
    as smartly as with the format for your weblog. Is that this a paid topic or did you customize
    it yourself? Either way keep up the nice quality writing, it’s rare to
    peer a nice weblog like this one these days..

  25. Moreover the 2on-2off Contact Coaching DVD,
    my subsequent a number of tasks will include a web page designed for Novice Handlers and different agility coaching materials specific to front crosses, rear crosses and more.

    Review my site – how to make dog stop barking in crate at night (s3.amazonaws.com)

Leave a Reply