QQ connect client request's parameters are invalid, invalid openid

if you want to get user infomation such as nickname

require_once("API/qqConnectAPI.php");
$qc = new QC();
$acs = $qc->qq_callback();
$oid = $qc->get_openid();
$qc = new QC($acs,$oid);
$uinfo = $qc->get_user_info();
$_SESSION['name'] = $uinfo['nickname'];
$_SESSION['gender'] = $uinfo['gender'];

 

猜你喜欢

转载自wuchengyi.iteye.com/blog/1876004
今日推荐