Skip to content

Latest commit

 

History

History
executable file
·
28 lines (22 loc) · 688 Bytes

File metadata and controls

executable file
·
28 lines (22 loc) · 688 Bytes

Instagram media

Installation

After cloning the repository to app/Instagram directory in your project.

Run the following commands

$ composer require pgrimaud/instagram-user-feed
$ php artisan storage:link

Add App\Instagram\Providers\InstagramServiceProvider::class to providers in config/app.php

To download/update posts and stories from instagram write:

$service = new InstagramService();
$service->updatePosts();
$service->updateStories();

For use:

/* @var InstagramRepositoryInterface $repository */
$repository = app(InstagramRepositoryInterface::class);
$instagramPosts = $repository->getPosts();
$instagramStories = $repository->getStories();