pierrestoffe / craft-instagram
Instagram integration for Craft CMS
Package info
github.com/pierrestoffe/craft-instagram
Type:craft-plugin
pkg:composer/pierrestoffe/craft-instagram
Requires
- craftcms/cms: ^3.5.0
- pierrestoffe/php-facebook-graph-sdk: ^5.7
- pierrestoffe/php-instagram-graph-sdk: 2.2.1
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Instagram integration for Craft CMS
Requirements
This plugin requires Craft CMS 3.0.0 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project -
Then tell Composer to load the plugin:
composer require pierrestoffe/craft-instagram -
In the Control Panel, go to Settings → Plugins and click the “Install” button for Instagram.
Using Instagram
This plugin includes 5 template variables:
-
craft.instagram.getMediaFromUser(instagramUser)in order to get the 25 latest media from the authenticated Instagram user -
craft.instagram.getMediaFromUrls(instagramUrlsArray)in order to get the media information of specific Instagram media -
craft.instagram.getSavedInstagramAccessToken(instagramUser)in order to get the access token used to fetch data with the Instagram API -
craft.instagram.getSavedInstagramAccessTokensin order to get all the access tokens used to fetch data with the Instagram API -
craft.instagram.getSavedFacebookAccessTokensin order to get all the access tokens used to fetch data with the Facebook API
Instagram Roadmap
Some things to do, and ideas for potential features:
- Generate the first long-lived access token from the App ID and App Secret.
Brought to you by Pierre Stoffe