0

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.

BourneShady
  • 955
  • 2
  • 17
  • 36

1 Answers1

1

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.

AddWeb Solution Pvt Ltd
  • 21,025
  • 5
  • 26
  • 57
  • hi thanks for this! it actually did the job although i had error sayung `cURL error 60: SSL certificate problem` but i fixed it by adding a cacert.pem file in my php.ini. Thanks a lot! – BourneShady Nov 21 '16 at 14:54