PHPackages                             digitoimistodude/dude-insta-feed - 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. digitoimistodude/dude-insta-feed

AbandonedArchivedWordpress-plugin

digitoimistodude/dude-insta-feed
================================

Dude Instagram feed

0.1.0(8y ago)141762[1 issues](https://github.com/digitoimistodude/dude-insta-feed/issues)MITPHP

Since Jul 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/digitoimistodude/dude-insta-feed)[ Packagist](https://packagist.org/packages/digitoimistodude/dude-insta-feed)[ Docs](https://github.com/digitoimistodude/dude-insta-feed)[ RSS](/packages/digitoimistodude-dude-insta-feed/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

‼️**This repository is no longer actively maintained. The plugin still works, but does not receive any further updates other than community contributed fixes.**Dude insta feed
===============

[](#dude-insta-feed)

WordPress plugin to get latest images from Instagram user feeds.

Basically this plugin fetches images from Instagram, saves those to transient and next requests will be served from there. After transient has expired and deleted, new fetch from Instagram will be made and saved to transient. This implements very simple cache.

Handcrafted with love at [Digitoimisto Dude Oy](http://dude.fi), a Finnish boutique digital agency in the center of Jyväskylä.

NOTE!
-----

[](#note)

**DEPRECATED! This plugin does not work so well after Instagram has tightened their API usage. Better plugin to use is [ig-graph-feed](https://github.com/jake-101/ig-graph-feed) by Jake Peterson or our [image-user-feed](https://github.com/digitoimistodude/image-user-feed) which bypass the official API.**

Table of contents
-----------------

[](#table-of-contents)

1. [Please note before using](#please-note-before-using)
2. [License](#license)
3. [Legal](#legal)
4. [Usage](#usage)
5. [Usage example for displaying user feed](#usage-example-for-displaying-user-feed)
6. [Limiting feed items](#limiting-feed-items)
7. [Hooks](#hooks)
8. [Composer](#composer)
9. [Contributing](#contributing)

Please note before using
------------------------

[](#please-note-before-using)

This plugin is not meant to be "plugin for everyone", it needs at least some basic knowledge about php and css to add it to your site and making it look beautiful.

This is a plugin in development for now, so it may update very often.

License
-------

[](#license)

Dude insta feed is released under the GNU GPL 2 or later.

#### Legal

[](#legal)

Please read Instagram's [TOC](https://help.instagram.com/478745558852511) to determine can you use images and what restrictions there may be.

Usage
-----

[](#usage)

This plugin does not have settings page or provide anything visible on front-end. So it's basically dumb plugin if you don't use any filters listed below.

Only mandatory filter to use is `dude-insta-feed/access_token/user=$userid`.

Get images by calling function `dude_insta_feed()->get_user_images()`, pass user id as a only argument. User's id can be obtained with [this tool](http://www.otzberg.net/iguserid/).

### Usage example for displaying user feed

[](#usage-example-for-displaying-user-feed)

1. Go to [instagram.com/developer](https://www.instagram.com/developer) and register an application for your WordPress site. **Please note** that application must be registered with that exact user account you want to pull images from!
2. Disable Implicit oAuth2 from security for next step to work.
3. Generate access token by going to [this url](https://instagram.com/oauth/authorize/?client_id=%5BCLIENT_ID_HERE%5D&redirect_uri=http://localhost&response_type=token) and adding your CLIENT ID and REDIRECT URIs to their appropriate places and click **Authorize**.
4. Enable Implicit oAuth2 back.
5. Get the code after `#access_token=` in the following URL and add this snippet to **functions.php**. Your user ID is in the beginning of access token, just before tge dot.

```
/**
 * Dude Instagram hashtag feed.
 */
add_filter( 'dude-insta-feed/access_token/user=USERID_HERE', function() { return 'ACCESS_TOKEN_HERE'; } );
```

6. Add this loop to wherever you want to display your images:

```
