Reputation: 935
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
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
note: i also made my facebook app live in the facebook developers
i also added this on my domain but also have a warning
im still confused on where my error is. any idea what im doing wrong? thanks for advices.
Upvotes: 0
Views: 207
Reputation: 21681
Have you checked your site url value into Site URL field. Update it and check.
This should be work for you.
Upvotes: 1