Closed ChetanTechnource closed 1 month ago
Thank you for reporting this issue!
As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.
If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.
Thank you!
According to Facebook's official documentation, you need to add your configuration ID as an optional parameter. So try this and let us know the result
public function redirectToFacebook(): RedirectResponse
{
return Socialite::driver('facebook')
->usingGraphVersion(config('services.facebook.version'))
->with(['config_id' => config('services.facebook.configuration_id')])
->redirect();
}
Thanks @ev-gor
Socialite Version
5.16
Laravel Version
11.9
PHP Version
8.3.11
Database Driver & Version
Mysql 8.0
Description
My facebook app has been upgraded to use facebook login for business. When I am trying to login, I am receiving following error :
It would be nice to have method similar to
usingGraphVersion
i.eusingConfigIdForBusinessLogin(config('services.facebook.configuration_id'))
Steps To Reproduce
You should be able to reproduce if you are using facebook login for business.