网站接入QQ登录

生成授权请求

        require_once(MIO_PATH."Lib/qq-login/API/qqConnectAPI.php");
        $qc = new QC();
        $qc->qq_login();

 

回调

        require_once(MIO_PATH."Lib/qq-login/API/qqConnectAPI.php");
        $qc = new QC();
        $callback = $qc->qq_callback();
        $open_id = $qc->get_openid();
        $qc = new QC($callback,$open_id);
        $r = $qc->get_user_info();