Social feed widgets for any website

Embed Instagram Feed - HTML Code

Add a live Instagram 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 Instagram posts appear instantly.

Live Instagram Feed Widget

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

The Simplest Way to Embed Instagram on Your Website

Instagram's native embedding only supports single posts — there's no official way to embed your entire feed. 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 Instagram 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 Instagram feed. No JavaScript frameworks, no build tools, no npm packages.

Behind the scenes, the widget connects to your Instagram account 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 Instagram feed widget live.

1

Create Your Account

Sign up at Social Media Feeds — it takes 30 seconds. Connect your Instagram Business or Creator account 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 Instagram 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 Instagram 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 Instagram feed.

No Coding Skills Required

If you can copy and paste, you can embed your Instagram feed. No command line, no code editors, no technical knowledge needed.

Official Meta API

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

Automatic Updates

Post on Instagram 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 Instagram feed to appear -->
<div data-instagram-widget data-embed-id="your-embed-id"></div>
<script src="https://socialmediafeeds.com/embed/widget.js"></script>

What the Instagram embed code contains

The embed code has two parts. The first is an empty div with the attribute data-instagram-widget and a data-embed-id value that identifies your widget. The second is a script tag that loads widget.js from socialmediafeeds.com. When the page loads, the script finds each matching div, fetches your latest posts and draws the feed inside it.

Place the div exactly where the feed should appear, for example inside a section or a column. Place the script once, near the end of the body or right after the div. If you show several Social Media Feeds widgets on one page, the same script tag handles all of them, so you do not repeat it.

Instagram specific notes for hand-coded sites

Because the script runs in the browser, your site does not need server-side code, an API key or an Instagram access token. The connection to your Business or Creator account stays in Social Media Feeds, and you never put credentials in your HTML.

If your site sends a Content Security Policy header, allow scripts and images from socialmediafeeds.com. Instagram images are served through the widget so they keep loading even when the original Instagram links expire. For a static site, paste the snippet into your template once and every page that includes the template shows the feed.

Common Instagram issues and fixes

If the feed area stays empty, check that the div and the script tag are both present, that the data-embed-id matches your widget, and that no Content Security Policy blocks socialmediafeeds.com. Open the browser console and look for blocked requests. A missing div after deployment often means a build step stripped unknown attributes from your template.

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 Embed Instagram on Website guide.

Frequently Asked Questions

What does the Instagram 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-instagram-widget data-embed-id="220b8bc97fb318a1"></div> followed by <script src="https://socialmediafeeds.com/embed/widget.js"></script>. That's it.

Does Instagram offer a native HTML embed for feeds?

No. Instagram's official embed tool only supports single posts or Reels — there's no native way to embed your full feed. Social Media Feeds fills this gap with a one-line embed that displays your entire Instagram feed.

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 Instagram, 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 Instagram embed code?

Yes. The free plan includes one Instagram 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 Instagram feed with the same settings.

Can I put the Instagram script in the head of my page?

Yes. The script is asynchronous and waits for the page to be ready, so it works in the head or at the end of the body. Putting it near the end of the body is the safest choice for page speed.

Do I need an Instagram access token in my HTML?

No. The connection is stored in your Social Media Feeds account, and the embed code only holds a public embed ID. Nothing secret is placed in your page.

Can I embed the same Instagram feed twice on one page?

Yes. Repeat the div with the same embed ID where you want each copy, and keep a single script tag. Both copies show the same posts and layout.

Ready to Add Your Instagram 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.