pixelalbatross/instagram-feed-block

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:wordpress-plugin

pkg:composer/pixelalbatross/instagram-feed-block

0.1.0 2025-10-25 00:12 UTC

This package is auto-updated.

Last update: 2025-10-25 00:12:29 UTC


README

The Instagram Feed block lets users display Instagram posts on a page.

Description

A powerful and flexible feed block for the WordPress block editor that connects to Instagram API to display your latest posts.

The block provides a complete Instagram integration with OAuth authentication, automatic token refresh, and customizable display options. It includes multiple blocks for different parts of an Instagram post (media, caption, etc.) and supports both list and grid layouts.

The icons are from Themify Icons.

Features

  • Instagram API Integration: Secure OAuth authentication with automatic token refresh
  • Flexible Layouts: Support for both list and grid display layouts
  • Customizable Posts: Control the number of posts to display
  • Modular Design: Separate blocks for media, captions, and other post elements
  • Automatic Caching: Built-in caching system for optimal performance

Installation

Manual Installation

  1. Download the plugin ZIP file from the GitHub repository.
  2. Go to Plugins > Add New > Upload Plugin in your WordPress admin area.
  3. Upload the ZIP file and click Install Now.
  4. Activate the plugin.

Install with Composer

To include this plugin as a dependency in your Composer-managed WordPress project:

  1. Add the plugin to your project using the following command:
composer require pixelalbatross/instagram-feed-block
  1. Run composer install to install the plugin.
  2. Activate the plugin from your WordPress admin area or using WP-CLI.

Setup

Account Requirements

Step 1: Create App

  1. Go to the Facebook Developers Portal and click Create App
  2. Enter your app name (e.g., "My Website Social Feed" or "Company Social Media") and your contact email address
  3. Click Next
  4. Under Filter by, select Others
  5. Choose Other as use case and click Next
  6. Select Business as app type and click Next
  7. Click Create app

Step 2: Configure App

  1. Go to App settings > Basic:
    • Add your Privacy Policy URL and Terms of Service URL
    • Add your website domain to App domains: yourdomain.com
    • Click Save changes
  2. In the app dashboard, under Products, click Add Product
  3. Click Set up in Instagram
  4. Copy your Instagram App ID and Instagram App Secret (Do NOT use the credentials from App settings > Basic)
  5. Click Set up under Set up Instagram business login
  6. Add the following Redirect URL: https://yourdomain.com/instagram-feed-block/oauth-callback
  7. Click Save

Step 3: Configure Plugin

  1. Go to Settings > Instagram Feed Block in your WordPress admin
  2. Enter your Instagram App ID and Instagram App Secret and click Save
  3. Click Connect Instagram Account
  4. You will be redirected to Instagram where you can log in with your username and password
  5. After login, you will see a permissions window. The only permission required is the one that mentions "access media"
  6. Click Allow
  7. You'll be redirected back to WordPress with your connection configured

4. Add the Block

  1. In the block editor, search for "Instagram Feed"
  2. Add the block to your page or post
  3. Configure the number of posts to display
  4. Choose your preferred layout (list or grid)

Usage

Instagram Feed

The main block controls the overall feed settings:

  • Number of Posts: Set how many Instagram posts to display
  • Layout: Choose between list and grid layouts
  • Alignment: Support for wide and full-width alignments

Child Blocks

The Instagram Feed block includes several child blocks:

  • Post Template: Container for individual Instagram posts
  • Post Media: Displays the Instagram image or video
  • Post Caption: Shows the post caption text

Customization

The blocks support WordPress's built-in customization options:

  • Layout: Full layout support with custom spacing and gaps
  • Colors: Background and text color customization
  • Typography: Font family, size, and styling options
  • Spacing: Margin and padding controls
  • Borders: Border radius, color, width, and style options

Requirements

  • WordPress 6.7 or higher
  • PHP 8.2 or higher
  • Instagram Business or Creator account
  • Facebook Developer account
  • Valid Facebook App with Instagram product configured

Changelog

A complete listing of all notable changes to this project are documented in CHANGELOG.md.