{
"error": {
"message": "Missing redirect_uri parameter.",
"type": "OAuthException",
"code": 191,
"fbtrace_id": "AzSe_q6SF-tvZ9qPV0r39Ni"
}
}
i think you may try use redirect_uri instead of redirect
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
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
service.php
'facebook' => [ 'client_id' => env('FACEBOOK_CLIENT_ID'), 'client_secret' => env('FACEBOOK_CLIENT_SECRET'), 'redirect' => ' http://localhost:8000/login/facebook/callback',
loginController
public function handleProviderCallback()
{
$user = Socialite::driver('facebook')->stateless()->user();
}
the controller is work without user();
Please or to participate in this conversation.