`POST https://graph.facebook.com/v3.3/oauth/access_token` resulted in a `400 Bad Request` response:
I am trying to get user access with a Facebook login and I get this error. I try every solution but did not work. I am working with localhost. valuable codes are here
but sir in the socialite there is no redirect_uri parameter. when I use redirect_uri there is an error Undefined index: redirect in E:\Encode project\Socialist\social\vendor\laravel\socialite\src\SocialiteManager.php:168
Hey all, has anyone encounter this problem lately?
I had my socialite setup weeks & working fine with Laravel 8 & latest socialite package.
and suddenly i couldn't login with Facebook and the error stated
Client error: POST https://graph.facebook.com/v3.3/oauth/access_token resulted in a 400 Bad Request response: {"error":{"message":"Missing redirect_uri parameter.","type":"OAuthException","code":191,"fbtrace_id":"AtCr44WTEST-ABCDe (truncated...)
I've check the redirect url with method below:
Socialite::driver('facebook')->redirect()->getTargetUrl()
try{
$facebookuser = Socialite::driver('facebook')->user();
}catch(\Exception$e){
return redirect()->to('/login')->with('error','Authentication Failed !');
}
This Works With Me .
Your Error IS Due To The User Cancelled Facebook Login