PHPackages                             bramdeleeuw/silverstripe-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. bramdeleeuw/silverstripe-instagram

ActiveSilverstripe-vendormodule[API Development](/categories/api)

bramdeleeuw/silverstripe-instagram
==================================

Link your instagram account to you SilverStripe site and query the instagram api

3.0.9(3y ago)69785[1 PRs](https://github.com/TheBnl/silverstripe-instagram/pulls)BSD-3-ClausePHPCI failing

Since Apr 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/TheBnl/silverstripe-instagram)[ Packagist](https://packagist.org/packages/bramdeleeuw/silverstripe-instagram)[ RSS](/packages/bramdeleeuw-silverstripe-instagram/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (1)Versions (30)Used By (0)

Silverstripe Instagram
======================

[](#silverstripe-instagram)

Add support for the [Instagram Basic Display API](https://developers.facebook.com/docs/instagram-basic-display-api) to your website. Creates a tab in on the Member section where content authors can authenticate with your Instagram app. The module contains a task that fetches the authenticated member's images form instagram.

You can also paste a token from your app on [developers.facebook.com](https://developers.facebook.com/) with the [User Token Generator](https://developers.facebook.com/docs/instagram-basic-display-api/overview#user-token-generator). That way you can easily set up a connection for a client, your client only needs to accept the invitation from your facebook app.

### Installation

[](#installation)

Install the module trough composer

```
composer require bramdeleeuw/silverstripe-instagram
```

Set up your app in [developers.facebook.com](https://developers.facebook.com/) and follow [these instructions](https://developers.facebook.com/docs/instagram-basic-display-api/getting-started) to add the Instagram Basic API. After completing step 3 you should have an app set up with at least one test user and a `app_id` and `app_secret`. From the test users overview you can also generate a user token so you don't have to authorise trough the CMS.

Configure the `app_id` and `app_secret` in your yml config. Or you can use the CMS Setting to connect with your app.

```
Broarm\Instagram\InstagramClient:
  app_id: 'YOUR_APP_ID'
  app_secret: 'YOUR_APP_SECRET'
```

Next authorize your user so you can read their feed. Each member can be connected to their own feed, so you can read the feed from multiple users. Go to the Security admin and select the member you want to connect to instagram. Here you hava a button to authenticate instagram, this will redirect to a Instagram authentication screen where the user can connect themselves (make sure you are loggen in with the account you want to connect). Or you have the option to paste a generated user token, after a save you should see the profile is connected.

### Available methods

[](#available-methods)

The default behaviour runs a task that checks media from authenticated users. This data gets stored in `Broarm\Instagram\Model\InstagramMediaObject`'s. The simplest way to get started would by by running the task either by cron or by hand and querying the `Broarm\Instagram\Model\InstagramMediaObject`.

But you could also create your own tasks or, request the api directly, with the following methods.

```
$member = Security::getCurrentUser();
$instagram = new \Broarm\Instagram\InstagramClient($member->InstagramAccessToken);

// Get the media from the user connected to the access token
$instagram->getUserMedia();

// Get the media for the given user id
$instagram->getUserMedia($member->InstagramID);

// The above calls return a simple array with media id's
// Use this call to get the media for the given id
$instagram->getMedia($id);
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 85% 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 ~89 days

Recently: every ~266 days

Total

29

Last Release

1175d ago

Major Versions

0.1.0 → 1.0.02017-01-26

1.0.7 → 2.0.02018-07-23

2.1.2 → 3.0.02020-03-11

1.x-dev → 3.0.52020-03-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/6131c03b7f5ba6b10fef192c90d68d57508e84c007a13321df6960b8298e19d1?d=identicon)[TheBnl](/maintainers/TheBnl)

---

Top Contributors

[![TheBnl](https://avatars.githubusercontent.com/u/1334195?v=4)](https://github.com/TheBnl "TheBnl (17 commits)")[![adiwidjaja](https://avatars.githubusercontent.com/u/280394?v=4)](https://github.com/adiwidjaja "adiwidjaja (2 commits)")[![RVXD](https://avatars.githubusercontent.com/u/1586761?v=4)](https://github.com/RVXD "RVXD (1 commits)")

---

Tags

instagraminstagram-apisilverstripe-instagramapiinstagramsilverstripemediasocial media

### Embed Badge

![Health badge](/badges/bramdeleeuw-silverstripe-instagram/health.svg)

```
[![Health](https://phpackages.com/badges/bramdeleeuw-silverstripe-instagram/health.svg)](https://phpackages.com/packages/bramdeleeuw-silverstripe-instagram)
```

###  Alternatives

[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

13998.4k2](/packages/jstolpe-instagram-graph-api-php-sdk)

PHPackages © 2026

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