bitwiseph/instagram-media

Get a posts from instagram account

dev-master 2021-07-29 09:26 UTC

This package is auto-updated.

Last update: 2025-08-29 02:20:15 UTC


README

It's a Laravel package which pulls instagram user posts to your website.

Requirements

  • PHP 7.0 or higher
  • cURL
  • Registered Instagram App via Facebook Developers

Laravel 5.8 or higher

Composer

composer require bitwiseph/instagram-media
Goto to config/app.php under providers array (this is not neccesary to Laravel 5.8 or higher)
 'providers' => [
 
 Bitwiseph\InstagramMedia\InstagramMediaServiceProvider::class,
 
 ] 

ENV

Setup your .env file with the following:

INSTAGRAM_APP_ID=
INSTAGRAM_APP_SECRET=
INSTAGRAM_APP_REDIRECT_URI=
INSTAGRAM_ACCESS_TOKEN=
INSTAGRAM_USER_ID=

Config (ignore when .env is setup)

Go to: config/bitwiseph.php if you would want to add credentials via config

To use the Instagram API you have to register yourself as a developer at the Facebook Developer Platform and create an App. Take a look at the uri guidelines before registering a redirect URI. You will need to add an Instagram under product section

Run the following php artisan command:

php artisan vendor:publish --tag=bitwiseph-instagram
This command will create a config file and vendor file for customization (for customization)

Customize the view

If you would prefer to edit the UI go to:
resources/views/vendor/bitwiseph/instagram-feed/index.blade.php 

Give it a try

Run:
php artisan serve

Click here after executing the php artisan serve

Legacy Version Support

PHP 5.4 & 5.5 If you are using PHP 5.4 or 5.5, you should consider upgrading your environment as those versions have been past end of life since September 2015 and July 2016 respectively. Otherwise, you can still use Stripe by downloading stripe-php v6.43.1 (zip, tar.gz) from our releases page. This version will work but might not support recent features we added since the version was released and upgrading PHP is the best course of action.

PHP 5.3

If you are using PHP 5.3, you should upgrade your environment as this version has been past end of life since August 2014. Otherwise, you can download v5.9.2 (zip, tar.gz) from our releases page. This version will continue to work with new versions of the Stripe API for all common uses.