Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJulian Cortes
3,549 PointsUsing Facebook and Google oAuth with Laravel 5.1
Hello ! Im having 400 Error page when Im trying to use $user = Socialite::driver('google')->user(); to handle Provider Callback.
This is my function n my controller public function redirectToProvider() { return Socialite::driver('facebook')->redirect(); } and this is my function to handle provider public function handleProviderCallback() { $user = Socialite::driver('facebook')->user(); }
This is the error when facebook or google routes to handleProviderCallback() function
ClientException in Middleware.php line 69: Client error: 400
Any help !!!
Julian Cortes
3,549 PointsJulian Cortes
3,549 PointsSolved
I just enable Google+ api from google developer console ... Im also misspelled secret keys google and facebook..
Works..