The Facebook Like Box (also known as the Facebook Fan Box) was a popular widget for websites. Facebook has now replaced it with the improved Page plugin. In this expert guide, we'll walk you through adding the new Facebook Page plugin to WordPress seamlessly.
Note: If you've already added the old Like Box or Fan Box to your WordPress site, Facebook will automatically upgrade it to the new Page plugin.

The Facebook Page plugin replaces the classic Like Box, letting you showcase and promote your Facebook Page directly on your site. It features a modern design, including your Page's cover photo, Like and Share buttons, friends who like your Page (optional), and recent posts.
Subscribe to WPBeginner for more WordPress tutorials. If you prefer reading, scroll down for detailed steps.
Start by visiting the Facebook Page Plugin page. Here, you can customize your plugin's appearance.

Enter your Facebook Page URL, then set the width and height (or leave blank for auto-adjust). Choose options to show cover photo, posts, and friends' faces.
Preview it, then click "Get Code".

Facebook provides two code snippets. Copy the first (JavaScript SDK) and paste it into your theme's header.php file, right after the <body> tag. For safety, use a child theme.
Copy the second snippet (iframe embed) and paste it where you want the plugin to appear—such as a Text widget via Appearance » Widgets, a post, or page.
This quick setup will help you engage visitors and grow your Facebook audience. For more tips, see our guide on 5 Quick Ways to Get More Facebook Likes Using WordPress.
If this helped, subscribe to our WordPress YouTube Channel for video tutorials. Follow us on Twitter and Facebook too.