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. Greate article. Keep writing such kind of info on your
    blog. Im really impressed by your site.
    Hi there, You have performed an incredible job.
    I will definitely digg it and individually suggest
    to my friends. I am sure they will be benefited from this web site.

  2. Hi would you mind letting me know which hosting
    company you’re utilizing? I’ve loaded your blog in 3
    different internet browsers and I must say
    this blog loads a lot quicker then most. Can you suggest a good internet hosting provider at a honest price?
    Thanks a lot, I appreciate it!

  3. hi!,I really like your writing very much! proportion we
    be in contact extra approximately your article on AOL?
    I need an expert in this house to unravel my problem.
    Maybe that is you! Looking ahead to peer you.

  4. 脱毛はしてみたいけど、気になる不安がいろいろと…という沖縄のあなた!
    痛くない。冷たいジェルも使わない。予約が取りやすい。さらに脱毛と同時にスリムボディーも目指せる。
    そんな脱毛サロンがあるとしたら、ちょっと気になりませんか?
    沖縄でいろいろ検証してみて、私が見つけた一押しの脱毛サロンはこちらです。
    サロンメニューの中でも、全身脱毛が一番のおススメです。

  5. I don’t even understand how I stopped up here, however I thought this post was once good.
    I don’t realize who you’re however definitely you’re
    going to a famous blogger in the event you are not already.
    Cheers!

  6. Great beat ! I wish to apprentice at the same time as you amend your website, how could i subscribe for a weblog website?
    The account helped me a applicable deal. I have been a little bit
    acquainted of this your broadcast provided bright transparent concept

    Also visit my homepage: photo booth

  7. Excellent post. Keep posting such kind of information on your site.

    Im really impressed by your site.
    Hi there, You have done an incredible job. I’ll definitely digg it and personally recommend to my friends.
    I’m sure they will be benefited from this website.

    Here is my web page :: Indie Authors

  8. You could certainly see your expertise within the
    work you write. The arena hopes for even more passionate writers such
    as you who aren’t afraid to say how they believe. At all times go after your
    heart.

    Visit my web blog: paytm coupons

  9. Goldenmines is an amazing money making method.

    Setting this up will only take 2 minutes of your time
    URL: goo.gl/GCs11f

    Step 1: Make an account
    Step 2: Login
    Step 3: Click on “Daily bonus” until you get 100 gold.

    You can get the daily bonus once a day.
    Gold is in game currency.
    Step 4: Hire a gnome for 100 gold.
    The gnomes generate gold for you automatically every hour.

    Step 5: convert your gold to USD and cashout.

    :D!!

    Note* : you must deposit minimum 0.20 USD to cashout
    But you will make way more then that, so no worries.

    payment proof
    gyazo.com/3c2c96e45e9d65631c491387eb232eba

  10. Even seemingly harmless rafts and balloons can cause accidents.
    Teams of 11 players play on a field no more than 130 yd x 100
    yd and not less than 100 yd x 50 yd. They want adventures and
    activities that are more fun, exciting and interesting.

  11. You made sure your credit was appropriate and then you began to search for the dream home.
    If you are unable to see the property a second or third time you still have ways of ensuring you’re
    not walking into a lemon. But isolation is not healthy over long periods of time.

  12. Hmm is anyone else experiencing problems with the images on this
    blog loading? I’m trying to figure out if its a problem on my end or if it’s
    the blog. Any feedback would be greatly appreciated.

  13. Hi I am so thrilled I found your blog page, I really found you by mistake, while I
    was researching on Digg for something else, Anyhow I am here now and would just
    like to say many thanks for a incredible post and a all round exciting blog (I also love
    the theme/design), I don’t have time to browse it all at the minute but I have bookmarked it and also added in your RSS feeds, so when I have time I
    will be back to read more, Please do keep up the excellent b.

  14. Falls die Suche kein Ergebnis findet, schrieben Sie uns, und
    wir versuchen unbedingt, den für Sie nötigen Film
    hinzuzufügen (Wichtig: Wir speichern keine Filme selber,
    sondern verlinken sie nur).

  15. I knew the company was dangerous news, and when she could not
    make the payments on her own, and I got concerned, I
    ended up paying off the mortgage and taking
    out my own loan to do it. We wound up owing over $20,000 that we
    could not pay, all from what started out as a $300 mortgage.

  16. I even have been putting in, beyond any doubt careless endeavours
    to get iTunes credit, but this solely applies in the event
    you’re not looking to get into the chief boards, as getting there requires you
    to both put cash into the game or use the Clash Royale Hack and Clash Royale Cheats,
    I can’t see any problems with opening more chests to get more cards to experiment
    with different unusual and unique units and get extra
    match makings, past any doubt.

  17. Right here is the perfect web site for anyone who would like to understand this topic.

    You realize so much its almost hard to argue with you (not that I actually would want to…HaHa).

    You definitely put a brand new spin on a topic that has been discussed for decades.
    Great stuff, just wonderful!

    Here is my homepage :: Stainless Steel 310

  18. 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.

    my site – Cooking Recipes

  19. Hiya very cool website!! Man .. Beautiful .. Amazing ..

    I’ll bookmark your blog and take the feeds also?
    I am happy to search out a lot of helpful info here within the put up, we need develop extra techniques on this regard, thank you for sharing.

    . . . . .

  20. I read this piece of writing completely on the topic of
    the resemblance of hottest and preceding technologies, it’s remarkable article.

  21. I really like your blog.. very nice colors & theme.

    Did you make this website yourself or did you hire
    someone to do it for you? Plz reply as I’m looking to
    create my own blog and would like to find out where u got this from.
    cheers

    My web-site; Fish Recipes

Leave a Reply