PHP code example of nestednet / socialite-wrapper

1. Go to this page and download the library: Download nestednet/socialite-wrapper library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nestednet / socialite-wrapper example snippets


Kneipp\SocialiteWrapper\SocialiteWrapperServiceProvider::class,

        'facebook' => [
            'client_id' => env('FACEBOOK_KEY'),
            'client_secret' => env('FACEBOOK_SECRET'),
            'redirect' => env('APP_URL') . '/callback/facebook',
        ],
    
        'twitter' => [
            'client_id' => env('TWITTER_KEY'),
            'client_secret' => env('TWITTER_SECRET'),
            'redirect' => env('APP_URL') . '/callback/twitter',
        ],
        
        'google' => [
            'client_id' => env('GOOGLE_KEY'),
            'client_secret' => env('GOOGLE_SECRET'),
            'redirect' => env('APP_URL') . '/callback/google',
        ],
    
        'linkedin' => [
            'client_id' => env('LINKEDIN_KEY'),
            'client_secret' => env('LINKEDIN_SECRET'),
            'redirect' => env('APP_URL') . '/callback/linkedin/',
        ],

php artisan vendor:publish --provider="Kneipp\SocialiteWrapper\SocialiteWrapperServiceProvider"
php artisan migrate