1.获取授权码
https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id=100310943&redirect_uri=http://www.taojinkuai.com
http://www.taojinkuai.com/?code=E87B5BFEC9D583B333E6E40DD5233F9E
2.通过授权码获取令牌
https://graph.qq.com/oauth2.0/token?grant_type=authorization_code&client_id=100310943&client_secret=4b05a12d3a50e68a9d2c2e5b1722cfe2
&code=E87B5BFEC9D583B333E6E40DD5233F9E&state=1&redirect_uri=http://www.taojinkuai.com
得到:access_token=17FBA89CB1F5D0A09DF7398FC5CC3314&expires_in=7776000
3.根据access_token获得对应用户身份的openid
https://graph.qq.com/oauth2.0/me?access_token=17FBA89CB1F5D0A09DF7398FC5CC3314
得到callback( {"client_id":"100310943","openid":"AFA528402E0923BBA251E2FFAE497888"} );
4.调用api获取用户身份信息
https://graph.qq.com/user/get_user_info?access_token=17FBA89CB1F5D0A09DF7398FC5CC3314&oauth_consumer_key=100310943&openid=AFA528402E0923BBA251E2FFAE497888
得到{ "ret":0, "msg":"", "nickname":"365在线调研网", "figureurl":"http://qzapp.qlogo.cn/qzapp/100310943/AFA528402E0923BBA251E2FFAE497888/30", "figureurl_1":"http://qzapp.qlogo.cn/qzapp/100310943/AFA528402E0923BBA251E2FFAE497888/50", "figureurl_2":"http://qzapp.qlogo.cn/qzapp/100310943/AFA528402E0923BBA251E2FFAE497888/100", "gender":"男", "vip":"0", "level":"0", "is_yellow_year_vip":"0" }