Display Instagram posts using a customizable Gutenberg block with list and grid layouts.
A WordPress plugin that connects to the Instagram API to display your Instagram posts in the block editor. It handles OAuth authentication, automatic token refresh, and provides modular blocks for media and captions with full layout and styling controls.
The icons are from Themify Icons.
- OAuth Authentication: Connects to the Instagram API with automatic long-lived token refresh
- List and Grid Layouts: Choose how your feed is displayed
- Modular Blocks: Separate blocks for media, captions, and post templates
- Full Styling Support: Colors, typography, spacing, borders, and overlay controls
- Built-in Caching: 5-minute transient cache for optimal performance
- Download the plugin ZIP file from the GitHub repository.
- Go to Plugins > Add New > Upload Plugin in your WordPress admin area.
- Upload the ZIP file and click Install Now.
- Activate the plugin.
To include this plugin as a dependency in your Composer-managed WordPress project:
- Add the plugin to your project using the following command:
composer require outstand/instagram-feed- Run
composer installto install the plugin. - Activate the plugin from your WordPress admin area or using WP-CLI.
You'll connect your Instagram Business or Creator account to your website using a Facebook App. This allows the plugin to fetch and display your Instagram feed securely.
- Your Instagram account must be a Business or Creator account
- To convert your account: How to switch to a professional Instagram account
All Instagram API access goes through the Facebook Developers platform. You'll create a Facebook App that connects to your Instagram Business or Creator account.
- Go to Facebook Developers Portal and click Create App
- Enter your app name (e.g., "My Website Social Feed" or "Company Social Media") and your contact email address

- Click Next
- Under Filter by, choose Others, then select Other as the use case and click Next

- Select Business as app type and click Next

- Click Create app

- Go to App settings > Basic:
- In the app dashboard, under Products, click Set up in Instagram

- Copy your Instagram App ID and Instagram App Secret (Do NOT use the credentials from App settings > Basic)

- Click Set up under Set up Instagram business login
- Add the following Redirect URL (replace yourdomain.com with your site's domain):
https://yourdomain.com/outstand-instagram-feed/oauth-callback
- Click Save
- Go to App Roles > Roles
- Click Add People

- Select Instagram Tester role
- Search for the account connected to your Instagram and click Add

- The person must accept the invitation:
- Go to Instagram
- Go to Settings > Apps and websites > Tester Invites
- Accept the invitation
- Go to Settings > Outstand Instagram Feed in your WordPress admin
- Enter your Instagram App ID and Instagram App Secret and click Save
- Click Connect Instagram Account
- You will be redirected to Instagram where you can log in with your username and password
- After login, you will see a permissions window. The only permission required is View profile and access media. All others you can leave unchanged or toggle off.
- Click Allow
- You'll be redirected back to WordPress. Your connection will appear as Connected in the plugin settings.
- In the block editor, search for "Instagram Feed"
- Add the block to your page or post
- Configure the number of posts to display
- Choose your preferred layout (list or grid)
The main block controls the overall feed settings:
- Number of Posts: Set how many Instagram posts to display (1-50)
- Layout: Choose between list and grid layouts
- Alignment: Support for wide and full-width alignments
- Post Template: Container for individual Instagram posts with full layout and styling support
- Post Media: Displays the Instagram image with link, dimension, overlay, border, and shadow controls
- Post Caption: Shows the post caption with heading level, alignment, link, and typography options
- WordPress 6.7 or higher
- PHP 8.2 or higher
- Instagram Business or Creator account
- Facebook Developer account with Instagram product configured
All notable changes to this project are documented in CHANGELOG.md.
This project is licensed under the GPL-3.0-or-later.