微信第三方登陆不能和QQ互联同样自动适配手机端和PC(在手机端不能自动调用APP仍是须要扫码,很是不方便)api
如图:在移动端仍是中间的效果,实际需求须要第三种。微信
https://open.weixin.qq.com/connect/ qrconnect ?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect
3.移动端请求的URL应该为:微信开发
微信公众号的Oauth2 认证 。 https://open.weixin.qq.com/connect/oauth2/authorize?appid=XX&redirect_uri=XX%3D&response_type=code&scope=snsapi_login&state=#wechat_redirect
其中的 appid 均为微信开发平台的APPIDapp
这样就能够实现手机端 能够在微信中一键登陆了code