pierrestoffe / craft-instagram
Instagram integration for Craft CMS
Installs: 371
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 3
Type:craft-plugin
Requires
- craftcms/cms: ^3.5.0
- pierrestoffe/php-facebook-graph-sdk: ^5.7
- pierrestoffe/php-instagram-graph-sdk: 2.2.1
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.getSavedInstagramAccessTokens
in order to get all the access tokens used to fetch data with the Instagram API -
craft.instagram.getSavedFacebookAccessTokens
in 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