Skip to content

A simple inspired by socialite library for laravel to authenticate users and obtain data from instagram api.

Notifications You must be signed in to change notification settings

DotEnv/instagram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instagram

A simple inspired by socialite library for laravel to authenticate users and obtain data from instagram api.

Total Downloads Latest Stable Version Build Status

Installing

The package installation can be done with composer by the following command:

composer require dotenv/instagram

Usage

1 - Add the ServiceProvider in the app/config.php file.

Dotenv\Instagram\Providers\InstagramServiceProvider::class,

2 - Register an alias in the app/config.php file.

'Instagram' => Dotenv\Instagram\Facades\Instagram::class,

3 - Rgister a facade alias in app/config.php file.

'Instagram' => Dotenv\Instagram\Facades\Instagram::class,

4 - Publish config file.

php artisan vendor:publish --provider="dotenv\instagram"

5 - How to use it?

Route::get('auth/', function() {
	
	return \Instagram::authenticate();
});

Route::get('auth/callback', function() {
	
	$user = \Instagram::retrieveUser();

   	$userFromToken = \Instagram::userFromToken($user->token);
});

6 - Go to wiki to see the full documentation.

Wiki

License

Instagram library is licensed under [The MIT License (MIT)] (https://github.com/dotenv/instagram/blob/master/LICENSE)(LICENSE).

About

A simple inspired by socialite library for laravel to authenticate users and obtain data from instagram api.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages