PHP code example of riclep / social-login

1. Go to this page and download the library: Download riclep/social-login 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/ */

    

riclep / social-login example snippets


'facebook' => [
	'client_id' => env('FACEBOOK_CLIENT_ID'),
	'client_secret' => env('FACEBOOK_CLIENT_SECRET'),
	'redirect' => env('FACEBOOK_REDIRECT'),
],

'twitter' => [
	'client_id' => env('TWITTER_CLIENT_ID'),
	'client_secret' => env('TWITTER_CLIENT_SECRET'),
	'redirect' => env('TWITTER_REDIRECT'),
],

<a href="/social-auth/facebook/redirect">Facebook Login</a>
<a href="/social-auth/twitter/redirect">Twitter Login</a>