关于微信订阅号获取openid的问题_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:49:59
Original
1553 people have browsed it

RT。
1:之前看到一个认证的订阅号发布了一个网页的活动,该网页可以在朋友圈点击不用经过授权就获取到用户的openid是怎么做到的?
2:因为我比较少接触微信webapp开发,现在我的微信号是认证订阅号,没有使用高级模式,也可以做到这种效果吗?只需要获取一个唯一的标识码来判定用户身份.

表达不清晰请见谅


回复讨论(解决方案)

参考链接(请在微信客户端中打开此链接体验)Scope为snsapi_basehttps://open.weixin.qq.com/connect/oauth2/authorize?appid=wx520c15f417810387&redirect_uri=http%3A%2F%2Fchong.qq.com%2Fphp%2Findex.php%3Fd%3D%26c%3DwxAdapter%26m%3DmobileDeal%26showwxpaytitle%3D1%26vb2ctag%3D4_2030_5_1194_60&response_type=code&scope=snsapi_base&state=123#wechat_redirectScope为snsapi_userinfohttps://open.weixin.qq.com/connect/oauth2/authorize?appid=wxf0e81c3bee622d60&redirect_uri=http%3A%2F%2Fnba.bluewebgame.com%2Foauth_response.php&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect
Copy after login


这是微信开发文档里面的代码,我用自己的资料替换第一个链接中的参数后在微信打开返回scope参数错误或者没有scope权限

翻了几遍  懂了 最后还是要靠服务号

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!