WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
    • Business Name Ideas
  • Deals
    • Bluehost Coupon
    • SiteGround Coupon
    • WP Engine Coupon
    • HostGator Coupon
    • Domain.com Coupon
    • Constant Contact
    • View All Deals »
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Tutorials» How to Add the New Facebook Page Plugin in WordPress

How to Add the New Facebook Page Plugin in WordPress

Last updated on January 9th, 2017 by Editorial Staff
672 Shares
Share
Tweet
Share
Pin
Free WordPress Video Tutorials on YouTube by WPBeginner
How to Add the New Facebook Page Plugin in WordPress

Facebook like box also known as Facebook fan box has become a must have element for many websites. Recently Facebook replaced this widget with the new Facebook Page plugin. In this article, we will show you how to add the Facebook page plugin in WordPress.

Note: Users who have already implemented the old like box or fan box on their WordPress sites will automatically be moved to the new Page plugin.

What is Facebook Page Plugin?

Preview of a Facebook Page  plugin embed

Facebook page plugin is the replacement of what was previously known as the Facebook Like box. It allowed you to promote your Facebook page on your website. The new Facebook Page plugin does the exact same thing.

It has a new and improved look which now displays your Facebook cover photo as well. It comes with two buttons. Users can Like your page, and they can also share it. You have the option to show users which of their friends have already liked your page. You can also display recent posts from your Facebook page.

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

How to Add The New Facebook Page Plugin in WordPress

First you need to visit Facebook’s Page Plugin website. You will find the options to configure the appearance of your Facebook page embed.

Facebook page plugin settings

Simply provide the URL of your Facebook page. Next you will need to enter the width and height for the box. Alternatively, you can leave it blank, and Facebook will try to automatically adjust it.

You can show your cover photo, posts, and friend’s faces in the page plugin. Once you are satisfied with the appearance, click on the Get Code button to continue.

Facebook page plugin code

Facebook will now show you two code snippets. Copy the first code snippet and paste it in your theme or child theme‘s header.php file right after the <body> tag.

Next, copy the second code snippet and paste it anywhere you want to display the page like box. You can also paste this code snippet into a text widget by going to Appearance » Widgets.

We hope this article helped you add Facebook Page plugin to your WordPress site. You may also want to check out our article on 5 quick ways to get more Facebook likes using WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

672 Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • How to Start Your Own Podcast (Step by Step)

    How to Start Your Own Podcast (Step by Step)

  • Revealed: Why Building an Email List is so Important Today (6 Reasons)

    Revealed: Why Building an Email List is so Important Today (6 Reasons)

  • Google Analytics in WordPress

    How to Install Google Analytics in WordPress for Beginners

  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

42 Comments

Leave a Reply
  1. Paddy says:
    Aug 18, 2019 at 6:06 pm

    This is not supporting to Mozilla browser. Supporting only on Chrome.
    Could you please help me to setup it for all the browser?

    Reply
    • WPBeginner Support says:
      Aug 19, 2019 at 11:39 am

      The page plugin should still work on FireFox, you may want to try disabling your browser addons to ensure it is not a conflict there.

      Reply
  2. Roja says:
    Aug 25, 2018 at 10:08 am

    Is there any option of call us or Send message instead of share button

    Reply
  3. Mario says:
    Apr 1, 2018 at 11:31 am

    Hello, when I try to use it and add through widget either text or html widget it wont go through as it strips all the data-attribute elements. Can you help me/us?

    Reply
  4. Xavier Clapin-Pépin says:
    Dec 21, 2017 at 7:27 am

    Thank you wpbeginner it’s great because I don’t have to download a WP plugin to add the Facebook Plugin Page which is recommended to minimize the number of plugins to avoid conflicts and having too many potential issues…

    It looks great the Facebook Plugin Page on our website as you can see on the right sidebar:
    Keep on your amazing work!
    Xavier

    Reply
  5. John says:
    May 14, 2017 at 11:34 pm

    I’m still having issues…

    For whatever reason when I’m filling it out under

    My page preview doesn’t appear…

    So I think it’s some type of permission settings that I have messed up.

    So when I get the code and put it on my page, it doesn’t appear either. Please help!

    John

    Reply
    • Xavier Clapin-Pépin says:
      Dec 21, 2017 at 7:27 am

      I had the same issue, make sure your Facebook page is published in the settings.

      Reply
  6. Teresa says:
    Apr 30, 2017 at 3:03 am

    Ok I got that figured out, but I don’t want to show a post – makes it too big. Your example shows where you can uncheck that, but on the page that option is not there. How do I get rid of that and just show my FB page header? Thanks

    Reply
  7. Teresa says:
    Apr 30, 2017 at 2:55 am

    So i did exactly as you said – I now have a FB box with mark zukerbergs live video just like is on the page where I copied the code…why would i get that? Obviously not what I want – so not helpful

    Reply
  8. Diana Lesko says:
    Apr 3, 2017 at 5:11 pm

    Great video? How about the editing part? Where do you edit the width?

    Reply
    • Diana Lesko says:
      Apr 3, 2017 at 5:13 pm

      I found my answer. :-) I cant delete my comment, sorry.

      Reply
  9. John says:
    Mar 23, 2017 at 5:33 pm

    Okay, I’m stumped. I followed the directions here on a friend’s WordPress site for her travel agency, and it worked perfectly. For four days. Then it just stopped working. To test it out, I changed the URL to another friend’s facebook page and it worked. But once I changed back to the travel agency page, nada. I was hoping you might have an idea on what’s going on and/or, even better, how I can get the app to work again.

    Reply
  10. Anne Marie says:
    Mar 16, 2017 at 5:29 pm

    Hello,
    I have been really struggling to complete this process : the Facebook developers page refuses my Facebook page URL, as well as my profile page URL…I just don’t know what to do to have it appear on my blog.
    Also, if I try, with Beaver Builder tools to add a “shortcode” from any plugin for Facebook, it never works! Nothing shows. Can you help please? Thanks!!!

    Reply
    • chris says:
      Apr 10, 2017 at 3:21 am

      have you found an answer to this? is it a fb setting? I am having the same issue. trying to do this to a group. not sure if i need to be a page admin for the code to work properly or what.

      Reply
      • Anne-Marie says:
        Apr 25, 2017 at 8:12 pm

        Hi Chris, yes! I wrote to the plugin company and they helped me understand the major difference between “everyone’s” Facebook page (aka, your personal page)–AND–the Facebook page you create with a different account..so until you do the steps via Facebook to create yourself a second, “professional” page (free, quite easy to do), no plugin will work. Once you do this, go back in the plugin section asking for your professional page Facebook URL (which is different), and it should show easily on your blog or site…hope it works for you too! :)

        Reply
  11. rohit says:
    Feb 1, 2017 at 1:24 am

    Hello. I am able to get the link on my website but not able to get the pic of page or any visual. How to fix that? Please help,

    Reply
  12. Monique says:
    Jan 6, 2017 at 12:10 pm

    How can I display a foto, article( or link) from WP to a facebook page?

    Reply
  13. niloy says:
    Dec 15, 2016 at 7:34 am

    how can I change language in this Facebook plugin

    Reply
  14. AL says:
    Nov 2, 2016 at 7:31 pm

    It works, thanks :D

    Reply
  15. Bogdan says:
    Sep 5, 2016 at 11:38 am

    It works only on widgets. How can I make it work on a page?

    Reply
  16. Jackie Parry says:
    Apr 12, 2016 at 9:17 am

    Thanks for the info – but for dummies like me, where do I find the page to put my FB page URL, as per your first pic. I opened the link to go to FB plugin website – but I don’t how how to get the right page up to add my url – please advise. Thanks.

    Reply
  17. April says:
    Mar 23, 2016 at 10:35 am

    Helpful post! Thank you.

    Reply
  18. Tomas says:
    Feb 11, 2016 at 3:45 pm

    Thanks for this post it was just what I was looking for!

    However when using the Share button everyone keeps getting the following error:

    App Not Setup: This app is still in development mode, and you don’t have access to it. Switch to a registered test user or ask an app admin for permissions.

    Any advise? Thanks!

    Reply
  19. Carole says:
    Jan 15, 2016 at 7:43 pm

    I’ve inserted the code but for some reason only the top 1/4″ of the image shows up. It looks fine in Preview on the FB page to create the code, but not on my website. Any idea on how to fix this?

    Reply
  20. Paul Butterworth says:
    Nov 26, 2015 at 7:49 am

    Thanks for this, it works, but I cant get the Adapt to plugin container width to work, its narrow, and if I set it manually the 500 width maximum is rather narrow. Is there a way to make it wider?

    Reply
  21. Erik says:
    Nov 4, 2015 at 1:58 pm

    Question: Is this Facebook Page Plugin the same as the Facebook Page Plugin created by Cameron Jones that can be found here:

    Not sure if it matters, but I’m trying to discern which one to use. If you have any helpful suggestions or info, I’d appreciate it!
    Thanks,
    Erik

    Reply
    • WPBeginner Support says:
      Nov 5, 2015 at 1:13 pm

      No it is not the same.

      Reply
    • Cameron Jones says:
      Dec 8, 2015 at 7:14 am

      Hi Erik,

      My plugin and the tutorial here are the same, but also different. Following this tutorial you need to edit your theme’s templates to add the code for the Facebook plugin, however if you use my WP plugin it will write all the code for you and you can control the options with either a shortcode or a widget.

      I hope that helps you
      Cameron

      Reply
  22. Junaid says:
    Oct 2, 2015 at 12:48 am

    I have used this method to add facebook feed here at. But it displays only 5 recent posts, after 5 posts it displays a button “Find us on Facebook” is there a way I can set it to display unlimited posts or atleast increase the number of posts to display?

    Reply
    • WPBeginner Support says:
      Oct 2, 2015 at 4:23 pm

      Please take a look at Social Plugins page on Facebook for more API parameters.

      Reply
      • Junaid says:
        Oct 2, 2015 at 9:28 pm

        Already checked there, I couldn’t find a parameter to set number of posts to display.

        Reply
  23. Long Nguyen says:
    Jun 4, 2015 at 1:03 pm

    I have found that even I don’t copy the first snippet to the header.php, the code in the second snippet still helps to show the badge.

    But I face a problem that the badge does not show all. It shows half of the left, so I have lost the share button on the right, no matter how I adjust the width at the code.

    Could you please advise how I can make it a full badge? Thanks. Mine web is diadiemdulich.com

    Reply
  24. samkelo magoqo says:
    May 14, 2015 at 1:56 am

    Thanks for the post! Would have loved to see the video tutorial also

    Reply
    • WPBeginner Support says:
      May 14, 2015 at 12:39 pm

      Video tutorial coming soon.

      Reply
  25. Jared says:
    May 12, 2015 at 3:12 pm

    I noticed on some themes that I am running you have to add the initialization for Facebook’s Javascript SDK to your file. As well as the code Facebook gives for your plugin.

    I also experimented by minifying the javascript and it still works. However, the performance of the new plugin is lacking. I noticed it loads last compared to the I was previously using.

    Reply
  26. Lindsey Garcia says:
    May 11, 2015 at 6:15 pm

    Okay, great, this rocks! BUT how do I paste the code in my child theme .php file????? I have no idea what you are talking about (newbie blogger). Is it within my wordpress dashboard? Is it through my host and I have to head over there? I found a youtube tutorial for this, too, and they did the same thing by not explaining how to do that…?? Help would be great! Thank you!

    Reply
  27. Sajid Akhtar Rehman says:
    May 11, 2015 at 1:22 am

    Thank u very much….this is awsome post and works properly

    Reply
  28. NemiraB says:
    May 10, 2015 at 12:31 pm

    Hi, thanks for information. It is a little bit complicated for me, but I guess it is worth to try it. These social connections are so important, because how you can spread your message without them? All the best, regards. Nemira

    Reply
  29. Abhishek says:
    May 10, 2015 at 11:22 am

    Thanks very much for the update finally updated my site with Facebook page plugin. I didn’t used the above 1st code , rather I used 2nd code and made a widget when I need to appear

    Reply
  30. oladayo awe says:
    May 8, 2015 at 9:13 am

    thanx for this post

    Reply
  31. Govertz says:
    May 7, 2015 at 9:41 am

    Is there anyone who has tested the performance impact with this new FB-plugin?

    Reply
  32. Damien Carbery says:
    May 6, 2015 at 11:36 am

    A function plugin (with add_action for wp_head) would be a great place for the Javascript code. This would mean that the header.php file would not have to be modified – useful for when the site owner has changed a parent theme or does not want to touch the child theme code.

    Reply

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
WP Mail SMTP logo
WP Mail SMTP
Fix WordPress email delivery issues. #1 SMTP plugin. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 30 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2020 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2020)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2020)
    • SiteGround Reviews from 4196 Users & Our Experts (2020)
    • Bluehost Review from Real Users + Performance Stats (2020)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Create an Email Newsletter the RIGHT WAY (Step by Step)
    • Free Business Name Generator (A.I Powered)
    • How to Create a Free Business Email Address in 5 Minutes (Step by Step)
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2020 – Step by Step Guide
Deals & Coupons (view all)
IPVanish Coupon
Get 20% OFF on IPVanish, one of the best VPN service providers for bloggers and WordPress users.
Theme Trust
ThemeTrust Coupon
Get 20% off on all ThemeTrust themes brought to you by Henry Jones.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).
Join our team: We are Hiring!

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
  • Free Business Tools
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • RafflePress
  • Smash Balloon

Copyright © 2009 - 2021 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

Managed by Awesome Motive | WordPress hosting by SiteGround | WordPress CDN by MaxCDN | WordPress Security by Sucuri.