$qc = new QC();
$access_token= $qc->qq_callback();
$openid= $qc->get_openid();
$arr = $qc->get_user_info();
上面代码,qq接口登录获取用户信息报错如下:
error:
-1
msg :
client request's parameters are invalid, invalid openid
解决方法:
重新获取$qc = new QC($access_token,$openid);QC对象
$qc = new QC();
$access_token= $qc->qq_callback();
$openid= $qc->get_openid();
$qc = new QC($access_token,$openid);
$arr = $qc->get_user_info();
本文地址:http://www.yayihouse.com/yayishuwu/chapter/1192