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'];