...

How to Embed Instagram Feed into Your Website

Smartphone with social media icons

Instagram is a powerful platform for engaging audiences and showcasing content visually. Embedding your Instagram feed into your website can enhance your site’s appeal, increase user engagement, and keep your content fresh.

In this guide, we will show you how to embed an Instagram feed into your website using both official and third-party methods.

Key facts infographic: Embed an Instagram Feed
Key facts at a glance

1. Why Embed an Instagram Feed?

Before diving into the steps, let’s explore why embedding an Instagram feed is beneficial:

  • Boosts engagement: Encourages visitors to interact with your Instagram content.
  • Keeps your website dynamic: Your feed updates automatically with new Instagram posts.
  • Improves social proof: Showcases real-time content and user-generated posts.

2. Embedding Instagram Feed Using the Official Method

Instagram provides an official embed option for individual posts, but to display an entire feed, you’ll need to use Meta’s Embed API or Facebook’s Page Plugin.

Step 1: Get Your Instagram Post Embed Code

  1. Open Instagram and go to the post you want to embed.
  2. Click the three-dot menu on the top right of the post.
  3. Select Embed and copy the generated code.
  4. Paste the code into your website’s HTML editor where you want the post to appear.

Note: This method only works for individual posts, not full feeds.

3. Embedding Instagram Feed with Third-Party Tools

If you want to display your entire Instagram feed, you’ll need to use third-party plugins or widgets.

Option 1: Using a WordPress Plugin (For WordPress Users)

For WordPress users, Smash Balloon Social Photo Feed is a popular plugin that allows easy integration of an Instagram feed.

  1. Install Smash Balloon Instagram Feed from your WordPress dashboard.
  2. Connect your Instagram account via the plugin settings.
  3. Customize the feed layout and display settings.
  4. Copy and paste the provided shortcode ([instagram-feed]) into your page or post.

Option 2: Using a Third-Party Widget (For Any Website)

Services like LightWidget or Taggbox provide customizable widgets for embedding Instagram feeds.

  1. Sign up for a service like LightWidget or Taggbox.
  2. Connect your Instagram account and generate a feed widget.
  3. Customize the layout, style, and number of posts displayed.
  4. Copy and paste the generated HTML embed code into your website.

4. Manually Embedding an Instagram Feed Using API (For Developers)

For advanced users, Instagram’s Graph API allows full customization and control over your embedded feed.

Step 1: Generate an Access Token

  1. Go to Meta for Developers and create an app.
  2. Request Instagram Graph API permissions.
  3. Generate a User Access Token to retrieve your Instagram posts.

Step 2: Fetch Instagram Posts Using API

Use the following API endpoint to fetch Instagram posts:

GET https://graph.instagram.com/me/media?fields=id,caption,media_type,media_url,permalink&access_token=YOUR_ACCESS_TOKEN

Step 3: Display Instagram Feed on Your Website

Once you retrieve your posts, use JavaScript or PHP to display them dynamically on your site.

Which Method Should You Use to Embed an Instagram Feed?

MethodBest forEffortCost
Official embed codeShowing one or two specific postsLow, but manual for every postFree
WordPress pluginAn automatically updated feed on a WordPress siteLowFree and paid options
Third-party widgetAny website builder or custom siteLowFree plans often add branding
Instagram APIFull control over design and cachingHigh, requires developmentFree, but needs maintenance

For most business websites, a well-maintained plugin or widget is the fastest and safest choice. Choose the API only if you need a fully custom design. If you are new to plugins, read our guide on how to install a plugin on your WordPress website first.

Tips for a Fast and Responsive Instagram Feed

  • Limit the number of posts. Showing six to twelve images is usually enough, and it keeps your page light.
  • Use lazy loading. Images below the fold should load only when the visitor scrolls to them.
  • Cache the results. If you fetch data from the API, store the response for a while instead of calling Instagram on every page view.
  • Make the grid responsive. Use a layout that shows fewer columns on small screens.
  • Add useful alt text and a clear link to your profile so that visitors know where to follow you.

Common Problems When You Embed an Instagram Feed

  • The feed stopped updating. Access tokens expire. Reconnect the account in your plugin settings, or refresh the token if you use the API directly.
  • The embed is blank. The account may be private, a cookie consent tool or ad blocker may be blocking the script, or the post may have been deleted.
  • The layout breaks on mobile. Check that the container has a flexible width and does not use a fixed pixel size.
  • The page loads slowly. Reduce the number of images, enable caching, and avoid loading several feed scripts on the same page.

Frequently Asked Questions

Is it free to embed an Instagram feed?

Embedding individual posts with the official code is free. Plugins and widgets often have free versions, with paid plans for extra layouts and features.

Do I need a business account?

It depends on the method. Instagram’s developer options have changed several times, so check the current Meta documentation. Most plugins and widgets handle the connection for you and explain which account type is required.

Privacy and Accessibility Tips for Instagram Embeds

Embedded feeds load scripts and images from a third party, so they may set cookies or collect visitor data. If your audience is subject to privacy rules, make sure that your cookie notice and privacy policy mention the embed, and load it only after consent when required. For accessibility, add a text link to your profile and descriptive alt text, so that visitors who use screen readers can still follow your account.

5. Conclusion

Embedding an Instagram feed into your website is a great way to keep your content fresh and engage visitors. Whether you choose the official method, a third-party plugin, or the Instagram API, you can easily showcase your latest posts on your site.

If this process seems too complex, I can help! Contact me for professional website integration services to embed your Instagram feed seamlessly.

Seraphinite AcceleratorOptimized by Seraphinite Accelerator
Turns on site high speed to be attractive for people and search engines.