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. Nostalgic, female and practical; this box has it all.
    If you miss that ballerina jewelry field you had as a child, this is your new jewellery storage choice. Keep all of your pretty stuff collectively whereas listening to the melody of Magic Flute”.

  2. Good day I am so delighted I found your webpage, I really found you by
    accident, while I was browsing on Aol for something else, Anyways I
    am here now and would just like to say cheers
    for a remarkable post and a all round exciting
    blog (I also love the theme/design), I don’t have
    time to read it all at the minute but I have saved it and also added your
    RSS feeds, so when I have time I will be back to read
    more, Please do keep up the awesome work.

    my weblog: multi-interest social platform

  3. I have been surfing online more than 3 hours today, yet I never found any interesting article luke yours.
    It is pretty worth enough for me. In my opinion, if alll website owners annd bloggers
    made good content ass you did, the net wikl be a
    lot more useful thawn ever before.|
    I could not refrain from commenting. Veery well written!|
    I will riggt away grab youhr rss feed as I can’t to find your email subscription link
    or e-newsletter service. Do you’ve any? Please allow me understand iin order that I could
    subscribe. Thanks.|
    It’s the best time to make some plans ffor the future and
    it’s time too be happy. I have read this post and if I could I desire to suggest you few
    interesting thuings or suggestions. Perhas you could write ext articles referring tto thius article.
    I want to read even more things aboht it!|
    It iss perfect time to make a feww plans for the longer term and iit is
    time to be happy. I’ve learn this post and if I
    may just I desire to suggest you some interesting thinbgs or advice.
    Perhaps you could write next articles referring to this article.

    I want to learn more thyings about it!|
    I have been browsing on-line greater than 3 hours today, yet
    I by no means found any fascinating article like yours.
    It is lovely worth enough for me. In my view, if all webmasters and bliggers
    made good content material as you probably did, the web will be a lot
    more helpful than ever before.|
    Ahaa, its fastidious diakogue about this paragraph here att this weblog,
    I havee read all that, so at this tiime me also commenting here.|
    I am sure this paragraph has touched all the internet users,
    its really really good piece of writing onn building up nnew weblog.|
    Wow, this poxt is pleasant, my younger sister is analzing these kinds of things, therefore I am
    going to tell her.|
    Saved as a favorite, I like your blog!|
    Way cool! Some very valid points! I appreciate you penning this post and the rest of
    the website is also very good.|
    Hi, I do think this is an excellent web site.
    I stumboedupon it 😉 I am going to come bac once again since I
    bookmarked it. Money and freedom is thhe best way to change, may you bbe rich
    and continue to help otther people.|
    Woah! I’m really digging the template/theme of this blog.
    It’s simple, yet effective. A lot of times it’s very difficult
    tto get that “perfect balance” between superb usability andd appearance.
    I mst say you’ve done a amazing job with this.
    In addition, the blog loads super quick for mee on Opera.
    Excellent Blog!|
    These are actually fantastic ideas in on the topic of blogging.
    You have touched some pleasant things here. Any way ksep up wrinting.|
    I love what you guys tend tto be up too. This kind oof clever work and reporting!

    Keep up the good works gus I’ve added you guys to my
    own blogroll.|
    Hey there! Someone in my Facebook group shared this ebsite wigh us so I
    came to look it over. I’m definitely loving the information. I’m
    book-marking annd will be tweeeting this to my followers!

    Outstanding blog and amazing style and design.|
    I love what you guys arre usuawlly up too. This kind of clever work and reporting!
    Keep up the amazing works guys I’ve added yoou guys to my personal blogroll.|
    Howdy would youu mind sharing whhich blog platform you’re working with?
    I’m going to start my own blog soon butt I’m having
    a difficult time selecting between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your design seems different then most blogs aand I’m looking for something completely unique.
    P.S Apoloyies for being off-topic butt I had to ask!|
    Howdy would you mind letting mme now which webhost you’re woring with?
    I’ve loaded your bblog in 3 different internet brpwsers
    and I must say this blog loads a lot faster then most.
    Can you suggest a good internewt hosting provider at a fair
    price? Thanks, I appreciate it!|
    I like it whenever pople come together annd share views.
    Great site, continue the good work!|
    Thank you for the good writeup. It in fact was a amusement account it.
    Look advanced to more added agreeable from you!
    By the way, how can we communicate?|
    Heyy just wanted to give you a quick heads up.
    The tewxt in your content seem to be running off the screen in Chrome.
    I’m not sure if this is a format issue or something to do with web browser compatibility but
    Ifigured I’d post to let you know. The layout look great though!

    Hope yyou get the problem resolved soon. Kudos|
    This is a topic that’s cllse to mmy heart… Take care! Exactly where are your contact details though?|
    It’s very effortless to find out any topic on net as compared to books,
    as I found this paragraph at this web site.|
    Dooes your blog have a contact page? I’m having a tough time locating it
    but, I’d like to send you an e-mail. I’ve got some creative ideas for
    your blog you miight be interested in hearing.
    Either way, great website and I look forward to seeing iit
    improve ove time.|
    Hey there! I’ve bden reading your weblog for a long time noow and
    finally got the courage too goo ahead and give you a shout out from Lubbock Texas!

    Just wanted too tell yoou keep up the great work!|
    Greetings from Florida! I’m bored too death at worfk so I decided to
    browse your site on my iphone during luncdh break.
    I really like the knowledge you provide here and can’t wait to take a look when I get home.
    I’m surprised at how quick ypur blog loaded on my phonne ..
    I’m not even using WIFI, just 3G .. Anyways, wonnderful site!|
    Its suych as you read my thoughts! You appear to understand a lot about this,
    such as yoou wrote the guide in it oor something. I feel that you just can do with a few % to force the message
    house a little bit, but instead of that, this is wonderful blog.
    A fantastic read. I will definitely be back.|
    I visited many sites except the audio feature for adio songs
    present at this website is actuaqlly excellent.|
    Hi, i read your blog occasionally and i own a similar one and i was just curious if you get a lot of slam comments?
    If sso how do you stop it, any plugin or anything you can suggest?
    I get so much lately it’s driving me maad so any assistance is very
    much appreciated.|
    Greetings! Very helpful advice within this article!
    It iis the little changees that produce the most significant changes.

    Thanks for sharing!|
    I absoluttely love your site.. Excellent colors & theme.
    Did you create this web siye yourself? Please reply back as I’m hoping too create my own blog and would love to learfn where you got this from or just what the theme is called.
    Thawnk you!|
    Hi there! This blog post could noot be written aany better!
    Going through this article reminds me of mmy prefious roommate!
    He continually kept preaching about this. I will sehd
    tgis article to him. Fairly certain he will have a grreat read.

    I appreciate you for sharing!|
    Wow! This blog looks exactly like my old one! It’s on a totally different subject but
    it has pretty much the same layout andd design. Outstanding choice of colors!|
    There is certainly a great deal to find out
    about this topic. I really like all the points you
    made.|
    You’ve made some really good points there. I checked on the
    web forr more information about the issue and found
    mlst people will go alonmg with your views on this website.|
    What’s up, I read your blog daily. Your story-telling style is awesome,
    keep doing what you’re doing!|
    I simppy couldn’t depart your website prior to suggesting that I really enjoyed the usual info an individual provide in your guests?
    Is gonna be back often iin order to check out new posts|
    I needed to thank you for this greaat read!!
    I definitely enjoyed every little bit of it. I have you book-marked to look at new stuff you post…|
    Hi, just wanted tto say, I liked this post. It wwas inspiring.

    Keep on posting!|
    Hi there, I enjoy reading all of your post. I like
    to write a little comment to support you.|
    I evey time spent my half an hour to read this blog’s content daily along
    with a cup of coffee.|
    I for all time emailed this webpage post page to all
    my associates, for the reaason that if like tto read itt after that my friends will too.|
    My coder is trying to persuade me to move to .net from PHP.
    I have always disliked the idea because of the expenses.
    But he’s tryiong none the less. I’ve been using Movable-type on a variety
    of websites for about a year annd am worried about switching to anotheer platform.

    I have heard great thingys aboht blogengine.net. Is there a way I can transfer aall my wordpress posts into it?
    Any help would be really appreciated!|
    Hi there! I could have sworn I’ve been to this site before but after going through some of the posts I realized it’s new to
    me. Regardless, I’m certainly delighted I stumbled upon it and I’ll be
    book-marking it and checkiing back often!|
    Terrific work! This is thee kind of information that are
    supposed to be shared around the net. Shame on Google for now not positioning this submmit higher!
    Come on over and isit my site . Thnks =)|
    Heya i’m for the first tijme here. I found this board and I find It really useful & it helped me out a lot.
    I hope to give something back andd aid others like you helpped me.|
    Hi there, I do believee your site might be having browser compatibility
    problems. When I look at your web sote in Safari,
    it looks finbe however, when opening in I.E., it has some overlapping
    issues. I merely wanted to giv you a quick heasds up!
    Aside from that, excellent website!|
    Someone essentially assist to make seriously articles I’d
    state. This is thee very first time I frewquented your wwbsite page and thus far?
    I surprised with the analysis you made to create
    this actual post amazing. Fantastic task!|
    Heya i’m for the primary time here. I foud this board and
    I in finding It really helpful & it helped me out much. I amm hoping to give something again and aid others such
    as you aided me.|
    Hello! I just would like to give you a huge thumbs up for the excellent information you have got
    right here oon this post. I’ll be returning to your site for more soon.|
    I all the time used to study paragraph in news papers but now as I am
    a user of net soo from now I am using net for articles or
    reviews, thanks tto web.|
    Your means of describing the wholle thing in this article is genuinely pleasant, alll
    be capable of effortlessly know it, Thanks a lot.|
    Hi there, I found your blog by wway off Google even as searching forr
    a simiar subject, your website got here up, it seems good.
    I’ve bookmarked it in my google bookmarks.
    Hi there, just become aware of your weblog thru Google,
    and fouynd hat it is really informative. I’m gonna watch
    out for brussels. I’ll be grateful in the event you proceed this in future.
    Numerous other folks will probably be benefited
    out of your writing. Cheers!|
    I’m curious too find out what blog system you have been utilizing?
    I’m having some small security problems with myy
    latest site and I’d like tto find something more safeguarded.

    Do you havbe any suggestions?|
    I’m extremely impressed with your writing skills and also with thhe layout on your weblog.

    Is this a paid theme or did you modify it yourself?
    Anyway keep up the excellent quality writing, it’s rare to see a
    nice blog like this one nowadays.|
    I am really inspired together with your writing talents and also
    with the format to your weblog. Is that this a paid topic or did you customize it your
    self? Either way keep up the nice quality writing, it is rare to see a great weblog likke
    this one nowadays..|
    Hello, Neat post. There’s a problem with your web site inn internet explorer, could test this?

    IE nonetheless is the market chief and a good portion of other folks will miss your wobderful writing because of this problem.|
    I’m not sure where yyou are getting yojr info, but good topic.
    I needs to spend some time learning more orr understanding
    more. Thanks for excellent info I was looking for this
    information for my mission.|
    Hi, i think that i saw you visited mmy weblog so i came to “return the favor”.I am trying tto find things
    to improve my web site!I suppose its ok tto use a few of your \

  4. Very good website! I truly love how it is simple on my eyes and also the data are well written. I’m wondering how I could be informed anytime a whole new post has been created.
    I’ve subscribed to your feed which should do the trick! Have a nice day!

  5. Νow as everyone knows, English to Arabic ᒪocalization may ƅe the major input reaching the potential indᥙstry within the Arabic Region and handle thеir fascinatіon, you shօuld likewise conform to English to Arabic DTP.
    Try 1 day noting the number of Spanish words үou come across, you might be sᥙrprised. You can start the child reading the simple words lіkе Mami, comida, mesa, Papi, mu.

  6. Some maried people have difficulties working toward a solution together and others need to communicate, such as the know where to begin to avoid wasting the marriage.
    Constantly attempting to convince him of why he was so wrong to depart you are going to cause him to close down rather than tune in to anything you say. And when you understand how to push the proper button, it is only just a few time before your man love you again.

  7. This is a very good tip particularly to those new to the blogosphere.
    Simple but very precise information… Thanks for sharing this one.
    A must read article!

    Also visit my web blog – choti golpo

  8. Besten Dank für euren hilfreichen Beitrag.

    Ich habe euren Weblog schon seit einiger Zeit als Newsfeed abonniert.

    Und gerade musste mich mal zu Wort melden .

    Macht genauso weiter, freue mich bereits jetzt schon auf die nächsten Artikel

  9. Thanks for some other magnificent article. Where else could anyone get
    that kind of info in such a perfect way of writing?

    I’ve a presentation subsequent week, and I’m on the search for
    such information.

    Look into my site Candy Crush

  10. It’s remarkable to pay a quick visit this web page and reading the views of all colleagues concerning
    this piece of writing, while I am also zealous of getting familiarity.

  11. Then he’s running around, getting individuals drinks, translating food selections as well as is up there dancing at the kafana; a sort of regional bar located all over the Balkans as well as generally the initial quit on the crawl.

Leave a Reply