From 9c4b4dbed62d3333361cc3a1b1a7eea4d92006d8 Mon Sep 17 00:00:00 2001 From: coeus Date: Tue, 30 Apr 2019 10:10:19 +0800 Subject: [PATCH] fb email --- src/Gateways/Facebook.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Gateways/Facebook.php b/src/Gateways/Facebook.php index f98b328..2d5c3f8 100644 --- a/src/Gateways/Facebook.php +++ b/src/Gateways/Facebook.php @@ -71,6 +71,7 @@ public function userinfo() 'nick' => $rsp['name'], 'gender' => $this->getGender($rsp), //不一定会返回 'avatar' => $this->getAvatar($rsp), + 'email' => isset($rsp['email']) ? $rsp['email'] : '', ]; return $userinfo; }