微信第三方登录不能和QQ互联一样自动适配手机端和PC(在手机端不能自动调用APP还是需要扫码,非常不方便)
如图:在移动端还是中间的效果,实际需求需要第三种。
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 均为微信开发平台的APPID
这样就可以实现手机端 可以在微信中一键登录了