BourneShady
BourneShady

Reputation: 935

facebook authentication using laravel 5.1 socialite

hello im using localhost so i have recently switched to laravel 5.1 and im trying to use 'socialite' it provides so i have updated my config , services and the .env files so in my routes i also added these codes

Route::get('/', function () {
return view('welcome');
 });
 Route::get('auth/facebook', 'Auth\AuthController@redirectToProvider');
 Route::get('auth/facebook/callback','Auth\AuthController@handleProviderCallback');
Route::get('home', array('as' => 'home', 'uses' => function(){
return view('home');
}));

then in my AuthController i have these codes enter image description here

in my view the button 'login with facebook' has the href of auth/facebook but what happens is facebook is giving me an error saying enter image description here

note: i also made my facebook app live in the facebook developers i also added this on my domain but also have a warning enter image description here

im still confused on where my error is. any idea what im doing wrong? thanks for advices.

Upvotes: 0

Views: 207

Answers (1)

AddWeb Solution Pvt Ltd
AddWeb Solution Pvt Ltd

Reputation: 21681

Have you checked your site url value into Site URL field. Update it and check.

enter image description here

This should be work for you.

Upvotes: 1

Related Questions