private void qq_callback() { string callback = conf.getVal("webhost")+"/account/qq_callback.aspx";//Session["callback"].ToString(); string token_url = "https://graph.qq.com/oauth2.0/token?grant_type=authorization_code&" + "client_id=" + Session["appid"] + "&redirect_uri=" + Server.UrlEncode(callback) + "&client_secret=" + Session["appkey"] + "&code=" + Request.QueryString["code"]; HttpClient http = new HttpClient(); http.do_get(token_url); StringUrl url = new StringUrl(http.value); if (url.get("access_token") != "") { Session["access_token"] = url.get("access_token"); Session["expires_in"] = url.get("expires_in"); } }