How to Add a Facebook Like Box to your Website
I have previously written a post on How to Add a Facebook Fan Button to your Website, but since then Facebook has changed,
- the word “Fan” to “Like“.. ie you no longer are a Fan of something.. rather, you Like something..
- the page from which to generate the code required for a Like Box
It is very easy to add a Facebook Like Box to your website and this post will show you how.
Like Box
The Like Box is a social plugin that enables Facebook Page owners to attract and gain Likes from their own website.
The Like Box enables users to:
- See how many users already like this page, and which of their friends like it too
- Read recent posts from the page
Like the page with one click, without needing to visit the page.
If you are wanting to add a Like button to your site you may want to refer to my post How to Add a Facebook Like Button to Your Website.
Facebook Page ID
To get started head over to the Facebook Like Box page.
Here is where you customise the look and feel of your Like Box.. and it is really quite simple.
The only tricky bit is getting your Facebook Page ID,

Wrong ID
Most Facebook page owners have a vanity URL for their page.. mine is http://facebook.com/TheSocialMediaGuide.
Your Facebook Page ID is NOT the name you chose as your vanity URL (in my case “TheSocialMediaGuide“)..
If you enter your vanity name in the Facebook Page ID field.. no errors will appear.. but you will notice what is displayed in the preview window, is NOT your Facebook Page.
It is a cut-off portion of your Profile..

Correct ID
To get your Facebook Page ID you will need to login to Facebook and browse to your Page.
Now hover your mouse over your Page’s picture.. then take note of the URL that appears in your status bar at the bottom of the page.
The long number at the end of the URL is your Facebook Page ID.. make a note of it!

When you enter this number the Facebook Page ID field you will notice that your Facebook Page details displays correctly in the preview window,

Now just configure your preferences then click on the <Get Code> button,
![]()
Copy your code (this post only covers the iframe code),

Then click on <Done>..
Adding the Facebook Like Box to your Website
(This post only covers adding a Like box to a WordPress site)
Login to your WordPress blog and click on Widgets,

Drag the Text widget to the sidebar,

Paste in the code you copied from before.. then click on <Save>,

(If you have a caching plug-in you may now need to empty it so this displays on your blog)
Done!
You have just added a Facebook Like Box to your website,

Finally..
If you liked this post please register to receive The Social Media Guide’s free newsletter that’s packed with tips, guides, downloads and more!
Most of these posts are available to download for free as PDFs for registered members.
Let your Facebook friends know that you Like The Social Media Guide by clicking on,
And following me on Twitter,
Enjoy!
Related posts:
- Add a Facebook Fan Button to your Website
- How to Add a Facebook Like Button to Your Website
- How to Speed Up your Website with GZip Compression
- Add a Vanity URL to Your Facebook Page
- How to Brand your Tweets with Your Website’s URL
- NetworkedBlogs – Bring your Blog to Facebook
- Liking a Facebook Page from Your Facebook Page


















7 Comments
Hi! I tried adding this to my site but it ends up changing the code when I save it on wordpress and I see the code on my page instead of the like box. When I click on the code it shows me the like box in a separate page. Any advice?
Have you tried emptying your browser's cache?
Help! I've been trying to figure out how to put a LIKE button on our church website. All the directions tell you how to get the code, but I don't know where or how to paste the code on my page? Could you please let me know what to do after copying the code? Thank you!
What is your website's URL?
Thank you for all the interesting news and facts on your site!
Hi… if you can see my blog… its a wordpress.com blog… can i follow this same this there…? i tried once… dint work!
its possible only on custom domains rite??
Hi Mario
This can be used on either a wordpress.org or a wordpress.com site.
Generate the code at Facebook, then add the code into a widget on your blog.