Facebook Tips & Strategies

How to Add a Facebook Page in WordPress Without a Plugin

By Spencer Lanoue
November 11, 2025

Embedding your Facebook Page directly into your WordPress site is a smart way to boost your social proof, gain more followers, and keep your website content looking fresh. But adding yet another plugin can slow your site down, introduce security risks, and add to your maintenance list. This guide will walk you through, step by step, how to add a dynamic and interactive Facebook Page feed to WordPress without needing to install a single plugin.

Why Integrate Your Facebook Page with WordPress?

Before we jump into the "how," let's quickly cover the "why." Linking your website and your Facebook presence creates a powerful feedback loop that benefits both platforms. When you proudly display your Facebook page on your site, you accomplish a few important things at once.

  • Builds Social Proof and Trust: When a visitor sees your active Facebook feed with likes, comments, and shares, it instantly builds credibility. An engaged community shows potential customers that your brand is legitimate, active, and trusted by others. It's a visual testament to your brand's vitality.
  • Increases Page Followers: Placing a "Like Page" button directly on your website makes it effortless for visitors to become followers. They don’t have to leave your site, open a new tab, and search for your page. A single click is all it takes, turning passive website traffic into an active, engaged audience you can reconnect with later.
  • Keeps Your Website Content Fresh: Your website might have static sections like an "About" or "Services" page, but an embedded Facebook feed keeps it dynamic. Your latest posts, photos, and updates are shown automatically, signaling to both visitors and search engines that your site is current and actively maintained.
  • Creates a Marketing Loop: Integrating the two platforms drives traffic both ways. Website visitors discover your vibrant social community and follow you on Facebook. Conversely, your Facebook followers click links that send them back to your blog posts and product pages. It’s a win-win that strengthens your entire online ecosystem.

The Problem with Using a Plugin for Everything

The WordPress plugin repository is full of options for embedding a Facebook feed, and while they can be convenient, they often come with hidden costs. The "no-plugin" approach isn't about being difficult, it's about being strategic and maintaining a healthy, high-performing website.

Here’s why avoiding a dedicated plugin for this task is a good idea:

  • Site Speed &, Performance: Every plugin you install adds code to your website. Poorly coded or feature-heavy plugins can add unnecessary JavaScript and CSS files, slowing down your page load times. Site speed is a confirmed ranking factor for Google, and more importantly, slow sites frustrate users and hurt conversion rates.
  • Security Vulnerabilities: Plugins are a common entry point for hackers. If a plugin isn't regularly updated by its developer or contains a vulnerability, it can put your entire site at risk. By using Facebook's official code, you minimize your reliance on third-party developers and reduce your site's attack surface.
  • Maintenance Headaches: More plugins mean more updates to manage, more potential for conflicts with other plugins or your theme, and more things that could break when you update WordPress core. Keeping your plugin list lean simplifies your website maintenance routine.

Your Step-by-Step Guide to Manually Embedding a Facebook Page

Ready to get this done? The process uses Facebook's own official developer tool, called the "Page Plugin," to generate the code snippets we need. It's safe, reliable, and gives you full control over the final look.

Step 1: Go to the Meta Page Plugin Generator

First, open your browser and head to Meta's (Facebook's) Page Plugin configuration tool. You can find it easily by searching Google for "Facebook Page Plugin" or going directly to the Meta for Developers site. This is the official and self-service tool for creating your embed code.

Step 2: Configure Your Facebook Page Feed

You'll now see a configuration tool with a live preview. This is where you'll customize how your Facebook feed will look on your website. Let’s walk through the options:

  • Facebook Page URL: This is the most important field. Copy the full URL of your Facebook Business Page and paste it here. As soon as you do, you should see the preview on the right update to show your page.
  • Tabs: This field tells the plugin what content to display. You can type in timeline, events, or messages. For most websites, starting with just timeline is perfect, as it shows your recent posts. If your business is event-driven, adding the events tab is a great idea.
  • Width &, Height: The plugin allows a width between 180px and 500px. It's often best to leave this blank and check the "Adapt to plugin container width" box below to make it responsive. For the height, set a value that fits your website's layout. A height of around 500 pixels is a good starting point for most sidebars.
  • Customize Options:
    • Use Small Header: Ticking this provides a more compact look.
    • Adapt to plugin container width: Always check this box. It ensures your feed will resize automatically to fit the sidebar, footer, or column it's placed in, making it look great on desktops, tablets, and phones.
    • Hide Cover Photo: If you prefer a more minimalist feed, you can check this to remove your page's cover image from the top.
    • Show Friend's Faces: This is a powerful social proof feature. If a logged-in Facebook user visits your site and their friend likes your page, it will show their profile picture. It creates a personal connection and encourages more likes.

Play with these settings until the preview looks exactly how you want it.

Step 3: Generate and Copy the Code

Once you’re happy with the preview, click the blue "Get Code" button. A pop-up will appear with two separate boxes of code. This is the part that often confuses people, but it's pretty straightforward.

Code Snippet #1: The JavaScript SDK

The first box contains the JavaScript SDK. This is a script that needs to be loaded once on every page where you want the feed to appear. The best practice is to load it once across your entire site. The instructions say to place it right after the opening <,body>, tag of your theme. Don’t worry, we’ll show you exactly how to do that safely in the next step.

<,!-- Code Snippet 1: The JavaScript SDK -->,
<,div id="fb-root">,<,/div>,
<,script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&,version=v15.0" nonce="XXXXXXXX">,<,/script>,

Code Snippet #2: The Placement Code

The second box contains the actual code for your Facebook plugin. This is the code you'll paste exactly where you want your feed to appear (e.g., in your sidebar widget or on a page). It will look something like this:

<,!-- Code Snippet 2: The Placement Code -->,
<,div class="fb-page" data-href="YOUR-FACEBOOK-PAGE-URL" data-tabs="timeline" data-width="" data-height="" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true">,<,blockquote cite="YOUR-FACEBOOK-PAGE-URL" class="fb-xfbml-parse-ignore">,<,a href="YOUR-FACEBOOK-PAGE-URL">,Your Page Name<,/a>,<,/blockquote>,<,/div>,

Keep this window open, or copy both snippets into a text editor. Now let's add them to your WordPress site.

Step 4: Add the JavaScript SDK to Your Website

This is the most "technical" part of the process, but it's simple if you follow the directions. We need to add Snippet #1 to your theme's header.php file. The safest way to do this is by using a child theme. If you edit your parent theme's files directly, your changes will be overwritten the next time the theme is updated.

Using a Child Theme (Recommended Method):

  1. From your WordPress dashboard, navigate to Appearance → Theme File Editor.
  2. On the right, make sure you have your child theme selected.
  3. Find and click on the header.php file to open it in the editor.
  4. Look for the opening <,body>, tag. It often looks like <,body <,?php body_class(), ?>,>,.
  5. Carefully paste Code Snippet #1 (the JavaScript SDK) on the line immediately after this tag.
  6. Click "Update File."

That's it! The JavaScript SDK is now installed on your site and ready to power your feed.

Step 5: Place Your Facebook Page Feed Where You Want It

Now for the easy part. You'll use Code Snippet #2 (the placement code) to display the feed. You can place this almost anywhere on your site.

How to Add it to a Sidebar or Footer:

  1. In your WordPress dashboard, go to Appearance → Widgets.
  2. Find the sidebar or footer area where you want the feed to appear.
  3. Drag a "Custom HTML" widget into that area.
  4. Paste Code Snippet #2 into the content box of the widget.
  5. Click "Save."

How to Add it to a Page or Post:

  1. Edit the page or post where you want to embed the feed.
  2. Click the "+" icon to add a new block.
  3. Search for and select the "Custom HTML" block.
  4. Paste Code Snippet #2 into the block.
  5. Click "Update" or "Publish" on your page.

Now, visit your website, and you should see your beautiful, dynamic Facebook feed perfectly embedded, without any extra plugins weighing your site down.

Troubleshooting Common Issues

  • The feed isn't showing up: The most common cause is forgetting one of the two code snippets. Double-check that the JavaScript SDK (Snippet #1) is in your header.php file and the placement code (Snippet #2) is in your widget or page. Also, be sure to clear any caching plugins and your browser cache.
  • It looks weird on mobile: Make sure you checked the "Adapt to plugin container width" box when configuring the code. This is essential for responsiveness. If it's still breaking your layout, the container it's in (like your sidebar) might have a fixed width that is interfering.

Final Thoughts

By using Facebook's official developer tools, you can seamlessly integrate your Facebook Page with WordPress without the performance drag or security risks of a third-party plugin. Once you've done it, you'll have a site that's not only more engaging and professional but also faster and more secure.

Displaying your social proof is just one piece of the puzzle, consistently creating and distributing content is what truly builds an engaged community. This is why we designed Postbase to help. We built it from the ground up to make managing modern social media - especially short-form video for Reels and TikTok - feel effortless. With Postbase, you can plan your content on a visual calendar, schedule it across all your platforms in just a few clicks, and track what’s working, all in one clean and reliable dashboard.

```

Spencer's spent a decade building products at companies like Buffer, UserTesting, and Bump Health. He's spent years in the weeds of social media management—scheduling posts, analyzing performance, coordinating teams. At Postbase, he's building tools to automate the busywork so you can focus on creating great content.

Other posts you might like

How to Add Social Media Icons to an Email Signature

Enhance your email signature by adding social media icons. Discover step-by-step instructions to turn every email into a powerful marketing tool.

Read more

How to Record Audio for Instagram Reels

Record clear audio for Instagram Reels with this guide. Learn actionable steps to create professional-sounding audio, using just your phone or upgraded gear.

Read more

How to Check Instagram Profile Interactions

Check your Instagram profile interactions to see what your audience loves. Discover where to find these insights and use them to make smarter content decisions.

Read more

How to Request a Username on Instagram

Requesting an Instagram username? Learn strategies from trademark claims to negotiation for securing your ideal handle. Get the steps to boost your brand today!

Read more

How to Attract a Target Audience on Instagram

Attract your ideal audience on Instagram with our guide. Discover steps to define, find, and engage followers who buy and believe in your brand.

Read more

How to Turn On Instagram Insights

Activate Instagram Insights to boost your content strategy. Learn how to turn it on, what to analyze, and use data to grow your account effectively.

Read more

Stop wrestling with outdated social media tools

Wrestling with social media? It doesn’t have to be this hard. Plan your content, schedule posts, respond to comments, and analyze performance — all in one simple, easy-to-use tool.

Schedule your first post
The simplest way to manage your social media
Rating