error; echo "msg :" . $msg->error_description; exi">
时间:2021-07-01 10:21:17 帮助过:16人阅读
error)) { echo "error:
" . $msg->error; echo "msg :
" . $msg->error_description; exit; } } //Step3:使用Access Token来获取用户的OpenID $params = array(); parse_str($response, $params); $graph_url = "https://graph.qq.com/oauth2.0/me?access_token=".$params['access_token']; $str = file_get_contents($graph_url); if (strpos($str, "callback") !== false) { $lpos = strpos($str, "("); $rpos = strrpos($str, ")"); $str = substr($str, $lpos + 1, $rpos - $lpos -1); } $user = json_decode($str); if (isset($user->error)) { echo "error:
" . $user->error; echo "msg :
" . $user->error_description; exit; } echo("Hello " . $user->openid); } else { echo("The state does not match. You may be a victim of CSRF."); }?>
QQ互联?你是要做啥呢,QQ开放平台做开发吗?
QQ互联?你是要做啥呢,QQ开放平台做开发吗?
用QQ号绑定网站用户
应该就是QQ开发平台,类似于腾讯微博开发。