instafeed_block
Provides customizable blocks to display Instagram posts that can be placed in any region of your website.
It integrates the instafeed.js library into your Drupal website, allowing you to display an Instagram feed seamlessly. Additionally, it provides functionality to automatically refresh the Instagram access token before it expires, ensuring uninterrupted access to your Instagram content.
IMPORTANT!If you are updating from version 1.0.10 or below, you need to change the external JS library name.
From: /libraries/instafeed-js
To: /libraries/instafeed.js
Customizable blocks
The modules block settings allow you to change the markup for the
Instagram posts, limit the number of results and choose what types of media you want to display. You can also disable the module CSS.
Advanced configuration
To enable Instagram access token refresh on cron, refer to the modules README file.
Installation
Install with Composer (or download module and library manually)
composer require drupal/instafeed_block
composer config repositories.instafeedjs '{"type": "package", "package": {"name": "stevenschobert/instafeed.js", "version": "2.0.0", "type": "drupal-library", "dist": {"url": "https://github.com/stevenschobert/instafeed.js/archive/refs/tags/v2.0.0.zip", "type": "zip"}}}'
composer require stevenschobert/instafeed.js:2.0.0
- Make sure the required external library is installed correctly. Check the system status page for verification.
- Add Instagram access token on the module settings page.
- Create an Instafeed block.
Requirements
This module requires the external library instafeed.js and must be installed in the libraries folder with the correct name. Check system status page to verify this.
You also need an Instagram access token. Follow the guide here on how to obtain yours.