第三方APP使用微信登陆官方文档:https://developers.weixin.qq.com/doc/oplatform/Mobile_App/WeChat_Login/Authorized_API_call_UnionID.html
https://developers.weixin.qq.com/doc/oplatform/Website_App/WeChat_Login/Wechat_Login.html (用开放平台会比用微信公众号平台多返回"unionid"等较多的参数)
https://www.cnblogs.com/0201zcr/p/5131602.html (用“snsapi_userinfo ”应用授权作用域,不用关注,用户点击了授权就可以获得用户信息)
微信开放平台开发第三方授权登陆(一):开发前期准备:https://blog.csdn.net/qq_34190023/article/details/81133619
微信开放平台的使用介绍,配置流程:https://blog.csdn.net/spt_dream/article/details/80592674
微信获取用户信息的两个接口和两个ACCESS_TOKEN(app使用的)
官方文档:
其它参考文档:
https://www.cnblogs.com/sxmny/articles/4969119.html
微信有2个ACCESS_TOKEN, 1,基础接口的token 获取接口是 https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET 2,用户网页授权access_token 获取接口地址是 https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code 网页授权access_token 需要通过code去获取 code是怎么来的,是通过调用下面接口来获取的 https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect 注意这个接口中有个参数scope 默认有2个值snsapi_base和snsapi_userinfo,这个接口会根据scope 来生成不同的code并且获取不同作用的access_token ,不管scope传什么值都能在得到对应access_token的同时得到open_id, 如果你只需要得到opend_id 那使用snsapi_base参数到此结束了,如果需要获取用户的其他信息比如 昵称 地址 就要snsapi_userinfo 会弹出授权 3 怎么获取用户信息那就调用下面接口 https://api.weixin.qq.com/sns/userinfo?access_token={0}&openid={1}&lang=zh_CN 很明显这个接口中的access_token是第二步获取code的时候scope 参数传snsapi_userinfo来换取的access_token
------------------------------------------------------------------------------------------------------------------------------------------
微信公众平台开发——微信授权登录(OAuth2.0)
http://www.cnblogs.com/0201zcr/p/5131602.html
https://api.weixin.qq.com/sns/oauth2/access_token?appid=
https://api.weixin.qq.com/sns/userinfo?access_token=
微信公众平台开发入门教程(图文详解): http://www.php.cn/weixin-kaifa-352288.html
php微信开发接入指南:https://www.cnblogs.com/slimo/p/4778342.html
微信自定义菜单:https://www.cnblogs.com/mchina/p/3276878.html
可以用“微信公众平台接口调试工具”直接生成公众号菜单
EasyWeChat:https://easywechat.org/zh-cn/docs/index.html