Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Oauth2 Instagram

Laravel Oauth2 Instagram Laravel Package

ramsey/laravel-oauth2-instagram

Laravel integration for Instagram OAuth2 authentication. This package provides a service provider and facade to wire Instagram login into your Laravel app, simplifying OAuth2 configuration and authorization flows.

View on GitHub
Deep Wiki
Context7

A Laravel 5 service provider for league/oauth2-instagram.

Frequently asked questions about Laravel Oauth2 Instagram
What is ramsey/laravel-oauth2-instagram used for?
It provides Laravel integration for Instagram OAuth 2.0 authentication. The package wraps league/oauth2-instagram with a service provider and facade so your app can build authorization URLs and retrieve access tokens with less boilerplate. Use it when a Laravel application needs Instagram login or Instagram account authorization.
How do I install ramsey/laravel-oauth2-instagram with Composer?
Install it through Composer as ramsey/laravel-oauth2-instagram. On Laravel versions without package auto-discovery, register the package service provider and facade manually. Then publish config/instagram.php and add your Instagram OAuth client credentials.
Which Laravel and PHP versions does ramsey/laravel-oauth2-instagram support?
The 3.0.0 release requires Laravel 5.6 or newer and PHP 7.1.3 or newer. Older Laravel 5 versions are only compatible with earlier 2.x releases. No upper Laravel or PHP bound is stated, so validate the package against your exact production versions before upgrading.
How do I configure Instagram OAuth credentials in Laravel?
Publish the package config file so config/instagram.php is available in your app. Set the Instagram client ID, client secret, and redirect URI from your Instagram or Meta developer app. Then load those values through the package binding rather than hard-coding them in controllers.
How do I generate an Instagram authorization URL in Laravel?
Use the package service or facade to request the provider's authorization URL with your redirect URI and required scopes. Redirect the user to that URL to start the OAuth consent flow. Keep the redirect URI consistent with the one registered in your Instagram app.
How do I exchange an Instagram OAuth code for an access token?
In your callback route, read the code query parameter returned by Instagram and pass it to the package's access token retrieval method. The wrapped league/oauth2-instagram provider performs the token request. Validate the OAuth state parameter and store the resulting token securely.
Is ramsey/laravel-oauth2-instagram compatible with Laravel 10 or Laravel 11?
The documented minimum for v3.0.0 is Laravel 5.6, but the provided context does not state an upper Laravel version bound. Modern Laravel releases are therefore not explicitly confirmed here. Test Composer resolution and the full OAuth flow in a branch before relying on it in production.
What breaking changes are in ramsey/laravel-oauth2-instagram v3.0.0?
v3.0.0 raises the platform floor to Laravel 5.6 and PHP 7.1.3 and adopts strict typing. Apps on older Laravel or PHP versions are no longer supported by v3, and strict types can expose signature or type mismatches in custom code. Treat the upgrade as a major contract change and run static analysis and integration tests.
What can I do if ramsey/laravel-oauth2-instagram is not compatible with my Laravel version?
If your app is below Laravel 5.6 or PHP 7.1.3, v3.0.0 is not an option, so upgrade the platform or pin to a supported 2.x release with a documented exception. You can also use league/oauth2-instagram directly or evaluate Laravel Socialite's Instagram provider for your Laravel version. Confirm the maintenance and security policy before choosing a legacy pin.
How should I test and prepare Instagram OAuth for production in Laravel?
Mock Instagram HTTP responses in tests and cover the redirect, callback, state validation, token exchange, and error paths. Run CI and static analysis on the exact Laravel and PHP versions you deploy, because strict typing and Composer constraints can fail outside the tested matrix. In production, store tokens securely and monitor OAuth failures during rollout.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core