PHPackages                             rummykhan/socialite - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. rummykhan/socialite

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

rummykhan/socialite
===================

Modified version of Tylor Otwell laravel/socialite to support Instagram oauth

5.0.0(10y ago)01.1kMITPHPPHP &gt;=5.4.0

Since Feb 14Pushed 10y ago1 watchersCompare

[ Source](https://github.com/rummykhan/socialite)[ Packagist](https://packagist.org/packages/rummykhan/socialite)[ RSS](/packages/rummykhan-socialite/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (7)Versions (7)Used By (0)

### rummykhan/socialite (Modified version of laravel/socialite to support instagram oauth)

[](#rummykhansocialite-modified-version-of-laravelsocialite-to-support-instagram-oauth)

Introduction
------------

[](#introduction)

Laravel Socialite provides an expressive, fluent interface to OAuth authentication with Facebook, Twitter, Google, LinkedIn, GitHub and Bitbucket. It handles almost all of the boilerplate social authentication code you are dreading writing.

License
-------

[](#license)

Laravel Socialite is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

Official Documentation
----------------------

[](#official-documentation)

In addition to typical, form based authentication, Laravel also provides a simple, convenient way to authenticate with OAuth providers using [Laravel Socialite](https://github.com/laravel/socialite). Socialite currently supports authentication with Facebook, Twitter, LinkedIn, Google, GitHub and Bitbucket.

To get started with Socialite, add to your `composer.json` file as a dependency:

```
composer require rummykhan/socialite

```

### Configuration

[](#configuration)

After installing the Socialite library, register the `Laravel\Socialite\SocialiteServiceProvider` in your `config/app.php` configuration file:

```
'providers' => [
    // Other service providers...

    RummyKhan\Socialite\SocialiteServiceProvider::class,
],

```

Also, add the `Socialite` facade to the `aliases` array in your `app` configuration file:

```
'Socialite' => RummyKhan\Socialite\Facades\Socialite::class,

```

You will also need to add credentials for the OAuth services your application utilizes. These credentials should be placed in your `config/services.php` configuration file, and should use the key `facebook`, `twitter`, `linkedin`, `google`, `github` or `bitbucket`, depending on the providers your application requires. For example:

```
'instagram' => [
    'client_id' => 'your-instagram-app-id',
    'client_secret' => 'your-instagram-app-secret',
    'redirect' => 'http://your-callback-url',
],

```

### Basic Usage

[](#basic-usage)

Next, you are ready to authenticate users! You will need two routes: one for redirecting the user to the OAuth provider, and another for receiving the callback from the provider after authentication. We will access Socialite using the `Socialite` facade:

```
