Search code examples
facebooklaravel-5laravel-socialite

Socialite laravel 5.4 Facebook Provider


i have a problem here maybe sameone can help me: i install the Socialite pakcage to my laravel project and in start it work perfect with facebook , google and linkedin provider. But now it get always this message when i try to connect with facebook , and other provider connect perfectly.

What's wrong ?

ClientException in RequestException.php line 111: Client error: GET https://graph.facebook.com/v2.8/me?access_token=&fields=name,email,gender,verified,link&appsecret_proof=5fbda0d218f94cb8024712269c053f0186d360efd82cd358b588eaf621e0c79c resulted in a 400 Bad Request response: {"error":{"message":"An active access token must be used to query information about the current user.","type":"OAuthExce (truncated...)


Solution

  • I fix the problem ! You need the make same changes in vendor/laravel/socialite/src/Two/FacebookProvider.php file

    See here:

    github socialite