Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 857
Malek Ben el ouafi Avatar asked Mar 27 '17 18:03

Malek Ben el ouafi


People also ask

What is Socialite laravel 8?

Laravel Socialite provides an expressive, fluent interface to OAuth authentication with Facebook, Twitter, Google, LinkedIn, GitHub, GitLab and Bitbucket. It handles almost all of the boilerplate social authentication code you are dreading writing.

Does laravel have Facebook?

Laravel Socialite package allows you to implement a robust, eloquent interface to OAuth authentication with various social media platforms such as Facebook, Twitter, Google, LinkedIn, GitHub, GitLab, and Bitbucket.


2 Answers

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

See here:

github socialite

like image 51
Malek Ben el ouafi Avatar answered Sep 25 '22 13:09

Malek Ben el ouafi


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

like image 37
Bishoy Adel Avatar answered Sep 21 '22 13:09

Bishoy Adel