PHPackages                             innocode-digital/wp-instagram - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. innocode-digital/wp-instagram

ActiveWordpress-plugin[API Development](/categories/api)

innocode-digital/wp-instagram
=============================

Enables Instagram Basic Display API for developers.

2.1.2(4y ago)02.5kGPL-2.0+PHP

Since Oct 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/innocode-digital/wp-instagram)[ Packagist](https://packagist.org/packages/innocode-digital/wp-instagram)[ RSS](/packages/innocode-digital-wp-instagram/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (12)Used By (0)

WordPress Instagram Basic Display integration
=============================================

[](#wordpress-instagram-basic-display-integration)

### Description

[](#description)

Enables **Instagram Basic Display API** for developers.

The idea of the plugin is to use [Instagram Basic Display PHP API](https://github.com/espresso-dev/instagram-basic-display-php)with ability to get access token through WordPress admin panel.

### Install

[](#install)

- Preferable way is to use [Composer](https://getcomposer.org/):

    ```
    composer require innocode-digital/wp-instagram

    ```
- Alternate way is to clone this repo to `wp-content/plugins/`:

    ```
    cd wp-content/plugins/
    git clone git@github.com:innocode-digital/wp-instagram.git
    cd wp-instagram/
    composer install

    ```

Activate **WordPress Instagram Basic Display integration** with [WP-CLI](https://make.wordpress.org/cli/handbook/)`wp plugin activate wp-instagram` or from **Plugins** page.

### Usage

[](#usage)

1. Check [Facebook Manual](https://developers.facebook.com/docs/instagram-basic-display-api/getting-started) on how to create an APP.
2. Add required constants (usually to `wp-config.php`):

    ```
    define( 'INSTAGRAM_CLIENT_ID', '' );
    define( 'INSTAGRAM_CLIENT_SECRET', '' );

    ```
3. Add site auth URL `https://site.com/instagram/auth/` to **Valid OAuth Redirect URIs** in **Basic Display**.
4. Open settings page in WordPress admin panel **Settings** -&gt; **Instagram**`/wp-admin/options-general.php?page=innocode-instagram`
5. Click on **Log in** button or **Log in as another user** in case when should change account.
6. Start use [Instagram Basic Display PHP API](https://github.com/espresso-dev/instagram-basic-display-php) through `innocode_instagram();` function e.g. `innocode_instagram()->getUserProfile();`.
7. (optional) Set site deauth REST API endpoint `https://site.com/wp-json/innocode/v1/instagram/deauth` in **Deauthorize Callback URL** in **Basic Display**.

### Notes

[](#notes)

If site is a part of [Multisite](https://wordpress.org/support/article/create-a-network/)then main site auth URL should be added in **Valid OAuth Redirect URIs**. So, plugin should be active on all network or at least on the main site additionally.

Plugin adds daily cron job after authorization. So, please be sure cron functionality works. The token tries to update 3 days before the expiration, user profile data updated daily.

### Documentation

[](#documentation)

By default, endpoint auth URL is using `instagram` as endpoint, but it's possible to change with constant:

```
define( 'INNOCODE_INSTAGRAM_ENDPOINT', 'insta' );

```

---

#### App site

[](#app-site)

If you want to use one APP for all of your sites where Instagram integration is in use and correctly handle deauthorization process then this plugin could be installed additionally on a site which will store user IDs and URLs of sites where these IDs are using, e.g. this could be a site of your company. Then it's needed to set one more constant on all sites with activated plugin.

```
define( 'INNOCODE_INSTAGRAM_APP_SITE', 'https://app-site.com' );

```

---

It's possible to change full auth URL:

```
add_filter( 'innocode_instagram_redirect_uri', function ( string $url ) {
    return $url;
} );

```

---

It's possible to change Instagram permission:

```
add_filter( 'innocode_instagram_scope', function ( array $scope ) {
    return $scope; // Default is array containing 'user_profile' and 'user_media'.
} );

```

---

It's possible to change state parameter which is sending with auth request:

```
add_filter( 'innocode_instagram_state', function ( string $state ) {
    return $scope; // Default is string in format '$blog_id:$nonce'.
} );

```

---

It's possible to change place where endpoint should be added:

```
add_filter( 'innocode_instagram_endpoint_mask', function ( $mask, $endpoint ) {
    return $mask; // Default is EP_ROOT constant.
}, 10, 2 );

```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~80 days

Recently: every ~117 days

Total

10

Last Release

1716d ago

Major Versions

1.1.0 → 2.0.02020-06-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b52f801a1cdb5f6622a9e49f4359717b1808ca23e948a243eae225f55e2c7eb?d=identicon)[smfb-dinamo](/maintainers/smfb-dinamo)

---

Top Contributors

[![kuliebiakin](https://avatars.githubusercontent.com/u/6066592?v=4)](https://github.com/kuliebiakin "kuliebiakin (30 commits)")

### Embed Badge

![Health badge](/badges/innocode-digital-wp-instagram/health.svg)

```
[![Health](https://phpackages.com/badges/innocode-digital-wp-instagram/health.svg)](https://phpackages.com/packages/innocode-digital-wp-instagram)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)[sybrew/the-seo-framework

An automated, advanced, accessible, unbranded and extremely fast SEO solution for any WordPress website.

47582.8k](/packages/sybrew-the-seo-framework)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45344.0k1](/packages/pressbooks-pressbooks)[pressbooks/pressbooks-book

This theme is named after Canadian media theorist Marshall McLuhan, who coined the phrase “the medium is the message.” It is designed for academic writing and is also suitable for fiction. Headings are set in Cormorant Garamond, and body type is set in Lora.

206.7k](/packages/pressbooks-pressbooks-book)[a2design-company/mandrill-cakephp-plugin

Mandrill CakePHP plugin

193.2k](/packages/a2design-company-mandrill-cakephp-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
