美文网首页微信开发帖子收集
公众号的用户授权,App微信登录,网站微信登录 区别

公众号的用户授权,App微信登录,网站微信登录 区别

作者: 青风雨 | 来源:发表于2016-09-20 15:49 被阅读3501次

    公众号的用户授权:

    • 跳转到微信的链接 : https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect](https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect

    注意:这个链接只能在微信客户端打开,否则会提示

    Paste_Image.png

    ** 页面打开之后,提示用户是否同意授权获取用户的微信基本信息。**

    • 参考文档:https://mp.weixin.qq.com/wiki/17/c0f37d5704f0b64713d5d2c37b468d75.html

    网站微信登录:

    • 跳转到微信的链接: https://open.weixin.qq.com/connect/qrconnect?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect](https://open.weixin.qq.com/connect/qrconnect?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect

    链接打开之后,生成一个二维码,使用微信客户端进行扫描,同意登录

    • 参考文档:https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419316505&token=&lang=zh_CN

    App微信登录:

    • 需要在微信开放平台下注册一个移动应用。使用这个AppId和AppSecret进行接口的调用。
    • 参考文档:https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419317851&token=&lang=zh_CN

    相关文章

      网友评论

      • 棍武中原:楼主,我获取token 的时候errmsg = "invalid grant_type, hints: [ req_id: Qma0884th19 ]";报这个错,不知道为什么啊

      本文标题:公众号的用户授权,App微信登录,网站微信登录 区别

      本文链接:https://www.haomeiwen.com/subject/vcdoettx.html