I'm building a web app in my local system (Ubuntu-14.04 64Bit) using laravel 5.3. I used Socialite to signin from social networks. I configured G+, Facebook, GitHug. I'm using Chromium as my default browser. Finally the problem is i'm getting
InvalidStateException in AbstractProvider.php line 200
frequently. i tried
php artisan cache:clear
php artisan config:clear
composer dump-autoload
these are helping to solve the issue temporarily, again the problem raising.
please help me in this issue..
I have same issue and solved in 3 steps;
add request on the top use Illuminate\Http\Request;
Pass request object to function
public function handleProviderCallback(Request $request) { try { $user = Socialite::driver('facebook')->user(); } catch (Exception $e) { throw new Exception; } }
Clear cache. php artisan cache:clear