LoginSignup
8
1

More than 5 years have passed since last update.

Laravel で、Socialiteを使ったFacebookログインができなくなっている件

Last updated at Posted at 2017-03-28

2017年3月28日から、FacebookのAPIの変更により、 laravel/socialite によるFacebook API を利用したログインができなくなっている。

ログはこんな感じ。

[2017-03-28 12:39:19] local.ERROR: GuzzleHttp\Exception\ClientException:
Client error:
`GET https://graph.facebook.com/v2.8/me?access_token=&fields=name,email,gender,verified,link&appsecret_proof=5
{"error":{"message":"An active access token must be used to query information about the current user.","type":"OAuthExce (truncated...)
in /app/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:111

下記のPRで修正されているので、 composer update して v2.0.21 または v3.0.4 にアップグレードすれば良い。

焦った。

こういう外部連携系はこまめにアップデートしておかないと危険。

関連

Stack overflow でも質問があった。

8
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
1