' => [ 'class' => 'yii\authclient\clients\Facebook', 'clientId' => 'facebook_client_id', 'clientSecret...' => 'facebook_client_secret', ], ], ] ... ]
更改入口文件,一般是app/controllers/SiteController.php,在function.../oauth2.0/authorize'; public $tokenUrl = 'https://graph.qq.com/oauth2.0/token'; public $apiBaseUrl...',', [ 'get_user_info', ]); } } protected function initUserAttributes() { $openid = $this->api...('oauth2.0/me', 'GET'); $qquser = $this->api("user/get_user_info", 'GET', ['oauth_consumer_key'=>$openid