7

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...)

Malek Ben el ouafi
  • 995
  • 12
  • 37

3 Answers3

18

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

See here:

github socialite

Malek Ben el ouafi
  • 995
  • 12
  • 37
  • 2
    Actually the best way is to run `composer require laravel/socialite` again and it will install the latest version including the fix – Alex Mar 27 '17 at 21:36
3

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

-1

Oh, so I'm not the only one. Good. Waiting on the answer, I've lost like at least 60mins trying to figure this out, I'm quite sure it's gonna be something Facebook related. They're killing their 2.2 api, I guess, today, maybe they messed up something. :/

Petar
  • 1
  • 1