diff --git a/auth/linkedin/callback.php b/auth/linkedin/callback.php index 25999fd..53ff3ed 100644 --- a/auth/linkedin/callback.php +++ b/auth/linkedin/callback.php @@ -70,4 +70,4 @@ function getInfo($url, $access_token) //$access_token = getAccessToken($_GET['code']); -print_r($GLOBALS); \ No newline at end of file +dump($GLOBALS); \ No newline at end of file diff --git a/auth/linkedin/index.php b/auth/linkedin/index.php index f1e2a2c..d86d728 100644 --- a/auth/linkedin/index.php +++ b/auth/linkedin/index.php @@ -21,7 +21,7 @@ function getCodeUrl() 'client_id' => '81cc4t9fuu9bpu', 'redirect_uri' => 'https://fengyuexingzi.top/auth/linkedin/callback.php', 'state' => $GLOBALS['state'], - 'scope' => 'r_fullprofile r_emailaddress w_share', + 'scope' => 'r_basicprofile r_emailaddress w_share', ); foreach ($data as $k => $v) { if (!$v) {