首先你的app要提交审核,得到app key,配置你的回调地址。通过http请求接口https://openmobile.qq.com/oauth2.0/m_authorize
拼装参数,得到如下地址:
https://openmobile.qq.com/oauth2.0/m_authorize?client_id=xxx&response_type=token&redirect_uri=xxx&scope=all
再通过webview load该地址就能打开第三方登录的授权页面。
紧握的空间吧。我的空间加好友我交给你
我这有一份进入登入扣扣空间的代码,网上摘下来的,你要送你!
你首先还要申请个 APP key!然后才能用 QQ的API