laravel-socialite

Laravel Socialite - Save URL before redirection

匆匆过客 提交于 2021-01-28 03:18:58
问题 I'm using Laravel 5.4 and Socialite so my users can log in with Facebook . My website works with subdomain newyork.example.com , paris.example.com example.com The Facebook URL redirect for the callback login has to be absolute so I set http://example.com login/facebook public function redirectToProvider() { $_SESSION['originalURL'] ="http://paris.example.com"; return Socialite::driver('facebook') ->scopes(['rsvp_event', 'public_profile']) ->redirect(); } login/facebook/callback public

How to fix 'Facebook has detected MyApp isn't using a secure connection to transfer information.' error in Laravel

核能气质少年 提交于 2020-08-24 05:40:30
问题 I am trying to connect my app to facebook login with Laravel and socialite package.But i don't know why facebook show me this error. I searched internet but i couldn't find anything .How can i fix this error ? I thought that if i make my connection with https it will work but after making https again error appears. My code in laravel: web.php Route::get('login/{provider}', 'SocialController@redirect'); Route::get('login/{provider}/callback','SocialController@Callback'); SocialController.php

Forcing user account selection for Laravel Socialite Google+ logins

北城以北 提交于 2020-05-11 12:57:37
问题 I recently implemented Laravel Socialite so that users can login using their Google+ accounts. Everything seems to be working but one issue I'm having is that after I login for the first time in a browser I am unable to switch to a different Google account if I log out and then log back in. Once the following code is executed in the LoginController it automatically (all in one action) logs me in with my Google account and redirects me back to my site without giving me the option to choose a

Forcing user account selection for Laravel Socialite Google+ logins

瘦欲@ 提交于 2020-05-11 12:51:14
问题 I recently implemented Laravel Socialite so that users can login using their Google+ accounts. Everything seems to be working but one issue I'm having is that after I login for the first time in a browser I am unable to switch to a different Google account if I log out and then log back in. Once the following code is executed in the LoginController it automatically (all in one action) logs me in with my Google account and redirects me back to my site without giving me the option to choose a

Laravel 5.5 socialite integration shows error formatRedirectUrl() must be of the type array, null given

a 夏天 提交于 2020-03-01 04:17:47
问题 I am using "laravel/socialite": "^3.0", to facebook login. But it shows an error Type error: Argument 1 passed to Laravel\Socialite\SocialiteManager::formatRedirectUrl() must be of the type array, null given, called in /var/www/html/mas/vendor/laravel/socialite/src/SocialiteManager.php. It happens when I am calling the below function in my login controller public function socialLogin($social) { return Socialite::driver($social)->redirect(); } 回答1: Hi you are missing to give credentials of

Laravel Socialite Facebook Login Error: The parameter app_id is required

别等时光非礼了梦想. 提交于 2020-01-15 06:35:38
问题 Trying to get socialite to work on my app. Facebook returns the The parameter app_id is required error. Routes: Route::get('/login/facebook', '\CommendMe\Http\Controllers\AuthController@redirectToProvider'); Route::get('/login/facebook/callback', '\CommendMe\Http\Controllers\AuthController@handleProviderCallback'); services.php : 'facebook' => [ 'client_id' => env('426129694395672'), 'client_secret' => env('840fca14fc9fac4b592cd49f285c2ee9'), 'redirect' => 'http://localhost/login/facebook