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