Socialite laravel 5.4 Facebook Provider

I have a problem here, maybe the same one can help me: I install the Socialite pakcage application in my laravel project and start working with facebook, google and linkedin provider. But now it always gets this message when I try to connect to facebook and the other provider connects perfectly.

What happened?

ClientException in the line RequestException.php 111: Client error: GET https://graph.facebook.com/v2.8/me?access_token=&fields=name,email,gender,verified,link&appsecret_proof=5fbda0d218f94cb8024712269c053f0186d360efd82cd358b588eaf621e0c79cled to the answer 400 Bad Request: {"error": {"message": "Active access token should be used to request information about the current user.", "Type": "OAuthExce (truncated .. .)

+6
source share
3 answers

I am fixing the problem! You need to make the same changes to the provider file /laravel/socialite/src/Two/FacebookProvider.php

Look here:

github socialite

+15
source

A composer update will fix it by updating the laravel / socialite version

+3
source

Oh, so I'm not the only one. Good. Waiting for an answer, I lost at least 60 minutes, trying to figure it out, I'm pretty sure that this will be due to what is connected with Facebook. They kill their 2.2 api, I think today, maybe they messed up something.: /

-one
source

Source: https://habr.com/ru/post/1016082/


All Articles