Regarding the problem of obtaining openid for WeChat subscription account_html/css_WEB-ITnose

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

RT.
1: I saw a certified subscription account publish the activities of a web page. The web page can be clicked in the circle of friends to obtain the user's openid without authorization. How to do it?
2: Because I am more I have less contact with WeChat webapp development. Now my WeChat ID is a certified subscription account. Can I still achieve this effect without using advanced mode? I only need to obtain a unique identification code to determine the user's identity.

Expression Sorry if it’s unclear


Reply to discussion (solution)

参考链接(请在微信客户端中打开此链接体验)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


This is the code in the WeChat development document, I Use your own information to replace the parameters in the first link and open WeChat to return a wrong scope parameter or no scope permissions

After reading it several times, I understand. In the end, you still need to rely on the service account

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!