Instagram Business Login OAuth2 Provider for Laravel Socialite
janyksteenbeek/socialite-instagram-business is a Laravel package for instagram business login oauth2 provider for laravel socialite.
It currently has 0 GitHub stars and 1.935 downloads on Packagist (latest version v1.0).
Install it with composer require janyksteenbeek/socialite-instagram-business.
Discover more Laravel packages by janyksteenbeek
or browse all Laravel packages to compare alternatives.
Last updated
https://developers.facebook.com/docs/instagram-platform/instagram-api-with-instagram-login/business-login
composer require janyksteenbeek/socialite-instagram-business
Please see the Base Installation Guide, then follow the provider specific instructions below.
config/services.php'instagram-business' => [
'client_id' => env('INSTAGRAM_CLIENT_ID'),
'client_secret' => env('INSTAGRAM_CLIENT_SECRET'),
'redirect' => env('INSTAGRAM_REDIRECT_URI')
],
In Laravel 11, the default EventServiceProvider provider was removed. Instead, add the listener using the listen method on the Event facade, in your AppServiceProvider boot method.
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
$event->extendSocialite('instagram-business', \JanykSteenbeek\SocialiteInstagramBusiness\Two\InstagramBusinessProvider::class);
});
Add the event to your listen[] array in app/Providers/EventServiceProvider. See the Base Installation Guide for detailed instructions.
protected $listen = [
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
// ... other providers
\JanykSteenbeek\SocialiteInstagramBusiness\Listeners\InstagramExtendSocialite::class.'@handle',
],
];
You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):
return Socialite::driver('instagram-business')->redirect();
idnickname (Instagram username)nameaccount_typemedia_countfollowers_countfollows_countavatar (URL to profile picture)