Download the PHP package aniket-magadum/insta-feeds without Composer
On this page you can find all versions of the php package aniket-magadum/insta-feeds. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package insta-feeds
Insta Feeds
Display Instagram Posts on your website with ease. Use Coupon Code
FIRST10
for 50% discount for first 10 users only.
This addon make's use of the Instagram Page Display API for fetching data via Instagram.
Features
- Provides you a tag which you use to render instagram posts in your template.
- Refresh the access token via schedular so you always keep fetching the latest content.
- Caching of the API response for faster rendering.
How to Install
You can search for this addon in the Tools > Addons
section of the Statamic control panel and click install, or run the following command from your project root:
Remember! This is a paid addon so purchase a license before using it.
How to Use
Once the extension is installed we have to setup the and in your .env file.
In order to generate these tokens you can visit this Get Started Guide for Instagram Basic Display API
On the same page you have to create a long lived access token as below

Once you click on generate token button it will ask your instagram details and once done you will receive this access token.

Schedular
This addon requires the schedular to be running as it performs the following tasks to be run in the background.
- Caching of instagram posts for faster retrieval.
- Refreshing of the access token periodically so that we dont need to put in any manual efforts.
You can setup a schedular is not already running by Following the Laravel Documenation
As of now,
- Posts are cached every hour.
- Token is refreshed every month.
If you wish to customize these values please let me know. But believe me the defaults are the best.
Rendering the feeds
In order to render the feeds on the frontend we can make use of the tag . Here is an example snipped which you can use. We have also added a {{ nocache tag }} as it will prevent frontend caching of the page and make this template dynamic.