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. Amazing blog! Do you have any tips for aspiring
    writers? I’m planning to start my own website soon but I’m a little
    lost on everything. Would you advise starting
    with a free platform like WordPress or go for a paid option? There are so many choices out there that
    I’m totally overwhelmed .. Any recommendations? Kudos!

  2. This design is steller! You certainly know how to keep a reader
    entertained. Between your wit and your videos, I was almost moved to start my own blog
    (well, almost…HaHa!) Wonderful job. I really loved
    what you had to say, and more than that, how
    you presented it. Too cool!

  3. We stumbled ⲟver heгᥱ differeոt ρage anԁ tҺought I miɡht check things out.

    І like ѡhat I sеe ѕo ոow i ɑm follоwing you.
    Looҝ forward to ⅼooking intо үour web pаɡe yet again.

    MÒ¯ homеpage – food blender

  4. Heya i’m for the primary time here. I came across this board
    and I in finding It truly useful & it helped me out a lot.
    I’m hoping to give something back and aid others such as you
    aided me.

  5. My brother recommended I may like this website. He was totally right.
    This submit truly made my day. You can not consider just how so much time I had spent for
    this information! Thank you!

  6. Magnificent goods from you, man. I have understand your stuff previous to
    and you are just extremely magnificent. I really like what you’ve got here, really like what you’re saying and the best way through which you are saying it.
    You’re making it entertaining and you still take care of to stay it
    sensible. I can not wait to read much more from you. That is really a tremendous site.jerseys for cheap

  7. I know this web site offers quality depending content
    and extra information, is there any other website which
    presents these kinds of information in quality?

  8. {ヒアルロン酸シート|ヒアルパッチ}は{マイクロニードル|貼るシート}の{最安値|格安}がおすすめです。{ヒアルロン酸の針|マイクロニードルのヒアルロン酸}が浸透する{貼る|刺す}のヒアルロン酸{パッチ|シート}おすすめはこちらです。

  9. Hello! Do you know if they make any plugins to assist with Search Engine Optimization? I’m trying
    to get my blog to rank for some targeted keywords but I’m
    not seeing very good results. If you know of any please share.
    Thanks!

  10. ヒアロモイスチャー240が、今、美容サイトなどで中年の女性に評判になってます。

    アラフォー世代になるとお肌の水分維持に重要なヒアルロン酸は、どんどん減少してしまいます。

    なので、サプリで補給してあげる必要がありますが、それを怠って補給しないままでいると、肌の水分量が減少して乾燥が進み、肌のハリや艶、弾力が衰えて硬くなってしまうんです。

    美しい皮膚の基本は皮膚のうるおいです。

    キユーピーのヒアモイは、肌の水分に必要です。

    私のサイトも是非参考に見て下さい。

  11. Thanks for any other informative website. The place
    else may just I am getting that type of info written in such an ideal means?
    I have a venture that I’m simply now running on, and I’ve been on the glance out for
    such info.

    my webpage site (Klaus)

  12. Hello! Quick question that’s totally off topic. Do you know how to make your site mobile friendly?
    My website looks weird when browsing from my iphone4. I’m trying to find a template or plugin that might be able to correct this problem.
    If you have any suggestions, please share. Many thanks!

  13. It’s 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 few interesting things
    or tips. Perhaps you could write next articles referring to this article.
    I wish to read more things about it!

  14. Hey, I think your website might be having browser compatibility issues.
    When I look at your website in Ie, it looks fine but when opening in Internet Explorer, it has some overlapping.
    I just wanted to give you a quick heads up! Other then that, very good blog!

  15. We are a group of volunteers and starting a new scheme in our community.

    Your website provided us with valuable info to
    work on. You have done a formidable job and our whole community will be
    thankful to you.

  16. Howdy would you mind letting me know which hosting company you’re using?
    I’ve loaded your blog in 3 different internet browsers and
    I must say this blog loads a lot quicker then most. Can you recommend a good internet
    hosting provider at a reasonable price? Many thanks, I appreciate it!

  17. You can also transfer the converted movies to your i – Pod, i – Phone
    or Apple TV. It can be overwhelming to sort through all the different reviews so it helps to find a good review site that you can
    trust. s Memorial Fund that was created to boost up the spirit of figure skating in U.

  18. I loved as much as you’ll receive carried out right here.

    The sketch is attractive, your authored subject
    matter stylish. nonetheless, you command get bought an shakiness over that you wish be delivering the following.
    unwell unquestionably come more formerly again since exactly the same nearly very often inside case you shield this increase.

  19. I’m not sure why but this web site is loading incredibly slow for me.

    Is anyone else having this issue or is it a
    issue on my end? I’ll check back later on and see if the problem still exists.

  20. I like the helpful information you provide in your articles.
    I’ll bookmark your weblog and check again here frequently.
    I’m quite certain I will learn plenty of new stuff right here!
    Good luck for the next!

  21. I am not sure where you are getting your info, but good topic.
    I needs to spend some time learning much more or understanding more.
    Thanks for wonderful info I was looking for this information for my mission.

  22. MaÇ¥nificent gⲟods from you, man. I’ve undеrstand youг stuff previous too
    annd you’re just too excellent. I reaⅼⅼү like what yoÕ½ have acquired here,
    rеally ⅼike what you are saуing and the way in which you saʏ it.

    You make it enjoyable and ʏou still take cаre
    of to keep it wÑ–se. I can’t wait to read mᥙch moire from you.Thiss is actually a terrifiϲ website.

    My weeb blog :: hl12 (hl12scam.angelfire.com)

  23. They don’t in any respect want any long menu of papers,
    so indivviduals get hold of the cash in less time as compared to different typical loans where the
    verification is done on all of the papeers and your entire process consumes much time to get sanction the mortgage.

    My weblog make money online now

  24. It’s appropriate time to make some plans for the longer term and it is time to be happy.
    I’ve learn this post and if I may just I want to recommend you some fascinating things or suggestions.
    Maybe you can write subsequent articles relating to this article.
    I desire to learn even more things approximately it!

Leave a Reply