Social feed widgets for any website

Embed Facebook Feed - HTML Code

Add a live Facebook Page feed to any website with a single line of HTML. No coding skills, no API keys, no complex setup — just paste the embed code and your Facebook posts appear instantly.

Live Facebook Feed Widget

This is a real Facebook feed widget — fully interactive and auto-updating. This is exactly what visitors to your website will see.

The Simplest Way to Embed a Facebook Feed on Your Website

Facebook's own Page Plugin is a clunky iframe that loads slowly, looks out of place on your site, and gives you zero control over styling. Most alternatives require developer skills, API key management, or expensive third-party tools. Social Media Feeds gives you a one-line HTML embed code that displays your full Facebook Page feed on any website.

The embed code works everywhere HTML works: WordPress, Shopify, Squarespace, Wix, Webflow, custom-built sites, landing page builders — if you can paste HTML, you can embed your Facebook feed. No JavaScript frameworks, no build tools, no npm packages.

Behind the scenes, the widget connects to your Facebook Page through the official Meta Graph API, so your feed updates reliably every time you post. But from your perspective, it's just one line of code that you paste once and never think about again.

Step-by-Step Setup

Follow these steps to get your Facebook feed widget live.

1

Create Your Account

Sign up at Social Media Feeds — it takes 30 seconds. Connect your Facebook Page through the secure Meta OAuth flow. No API keys to manage.

2

Customise Your Feed Widget

Choose your preferred layout (grid, cards, list, or carousel). Set how many posts to show, adjust colours and fonts, and preview your feed in real time before embedding.

3

Copy the HTML Embed Code

Your embed code is a single HTML div tag plus a script reference. It looks like this: a data attribute identifies your widget, and the script handles everything else.

4

Paste into Your Website HTML

Open your website editor and paste the code wherever you want the Facebook feed to appear. On WordPress, use a Custom HTML block. On Shopify, use a Custom Liquid section. On Squarespace or Wix, use an Embed or HTML block. The feed renders immediately.

Key Benefits

Everything you need to display your Facebook feed on your website — without the complexity.

One Line of HTML

The entire embed is a single div tag plus a script reference. No configuration files, no API keys, no JavaScript frameworks — just paste and publish.

Works on Any Website

WordPress, Shopify, Squarespace, Wix, Webflow, Framer, Carrd, custom HTML — anywhere you can paste HTML, you can embed your Facebook feed.

Better Than Facebook's Page Plugin

Facebook's own embed is a heavy iframe with no customisation. This is a lightweight async widget with full design control — colours, fonts, layouts.

Official Meta API

Your feed connects through Facebook's official Graph API — not screen scraping. Reliable, authenticated, and won't break unexpectedly.

Automatic Updates

Post on Facebook and your website updates itself. The embed code stays the same forever — new content flows through automatically.

Fully Customisable

Despite being a simple embed, you get full control over layout, colours, fonts, post count, and responsive behaviour through the dashboard.

Your Embed Code

Once you've created your widget, you'll get a simple embed code like this. Paste it anywhere on your website.

<!-- Paste this where you want your Facebook feed to appear -->
<div data-facebook-widget data-embed-id="your-embed-id"></div>
<script src="https://socialmediafeeds.com/embed/widget.js"></script>

How the Facebook embed snippet works

The snippet is a div with the attribute data-facebook-widget and your data-embed-id, followed by a script tag that loads widget.js from socialmediafeeds.com. When a visitor opens the page, the script fetches your Page posts from Social Media Feeds and renders them inside the div. There is no iframe, so Facebook's Page Plugin script is not loaded on your page.

That makes it a good fit for hand-coded HTML sites, static site generators and CMS themes that accept raw HTML. Paste the div where the feed belongs and keep one script tag per page, even when you show more than one widget.

Facebook specific details for HTML sites

You need a Facebook Page and a Facebook login that can authorise it. Page content is read through Meta's Graph API, and the access token is held in your Social Media Feeds account, never in your HTML. Only public Page posts appear, shown newest first with text, photos and links.

If you want the feed in a specific container, give the parent element a width and let the widget fill it. The layout is responsive, so a narrow mobile column and a wide desktop section both look right without extra CSS. Add the snippet to a shared template or include file to show the feed across many pages.

Common Facebook issues and fixes

When the feed does not appear, confirm both the div and the script tag are on the page and that the data-embed-id is correct. Some HTML sanitisers strip script tags from content fields, so place the snippet in a template or an HTML-enabled block. If posts stop updating, reconnect the Page in your dashboard.

More help: Widget not showing on my website.

Plan facts for this widget

  • Free: 1 widget, unlimited views, manual refresh only, Social Media Feeds branding.
  • Paid plans start at $5 per month (AUD, excluding GST) with automatic daily refresh and no branding.
  • Every plan includes unlimited views and all six platforms.

Compare every plan on the pricing page, or read the main Facebook Feed Widget guide.

Frequently Asked Questions

What does the Facebook embed code look like?

The embed code is two lines: a div tag with a data attribute identifying your widget, and a script tag that loads the widget renderer. Example: <div data-facebook-widget data-embed-id="8b329d4b7f53b3b4"></div> followed by <script src="https://socialmediafeeds.com/embed/widget.js"></script>. That's it.

How is this different from the Facebook Page Plugin?

Facebook's Page Plugin embeds a heavy iframe that loads slowly, can't be styled, and has limited functionality. Social Media Feeds uses a lightweight JavaScript widget that loads asynchronously, gives you full design control, and displays your posts in multiple layouts (grid, cards, carousel, list).

Will the embed code work on Shopify?

Yes. In your Shopify theme editor, add a Custom Liquid section and paste the embed code. It works in any section of any Shopify theme. No Shopify app installation required.

Do I need to update the HTML code when I post new content?

No. The embed code stays the same forever. When you post on Facebook, the widget automatically picks up your new content based on your plan's refresh interval — manual only on Free, daily on Starter and Pro, twice daily on Business.

Is there a free version of the Facebook embed code?

Yes. The free plan includes one Facebook feed widget with manual refresh and full customisation. No credit card required, no time limit. Paid plans add more widgets, faster refresh, and branding removal.

Can I embed the HTML code on multiple pages?

Yes. You can paste the same embed code on as many pages as you like — it counts as one widget. Each page will display the same Facebook feed with the same settings.

Does the Facebook embed use an iframe?

No. The widget draws the posts directly into a div on your page, which keeps the styling under your control and avoids the extra load of Facebook's iframe.

Can I style the Facebook feed with my own CSS?

Colours, fonts, spacing and layout are set in the widget editor and applied automatically. For most sites this is enough, and it avoids CSS that breaks when the widget markup changes.

What happens to the embed if I delete my Facebook Page?

The widget can no longer fetch new posts and will stop updating. Remove the snippet from your site or connect a different Page in your dashboard.

Ready to Add Your Facebook Feed to Your Website?

Start with a free plan. Explore paid plans for more widgets and features. Set up your first widget in under 5 minutes.

Choose the plan that fits your website.