What should I do if WeChat fails to obtain the user's openid?

coldplay.xixi
Release: 2020-08-14 10:42:02
Original
73168 people have browsed it

Solution to the failure of WeChat to obtain the user's openid: 1. Fill in the correct web page authorization URL in the official account function settings; 2. Find the WeChat online debugging tool; 3. Enter the APPID and secret, and click to check the problem; 4 , just pass in the APPID, secret, and code to get the openid.

What should I do if WeChat fails to obtain the user's openid?

Solution to WeChat’s failure to obtain user openid:

Step one: Web page authorization in official account function settings Fill in the URL correctly

Step 2: Find the WeChat online debugging tool, as shown in the picture: Get the simplestaccess_token

Enter the APPID and secret, click to check the problem, if If there is a problem, a prompt will be given below. For example, I encountered that the whitelist IP was not entered correctly

What should I do if WeChat fails to obtain the users openid?

Step 3: Pass in the APPID, secret, and code to get the open_id. Be sure to pay attention to the correct parameters passed in

Related learning recommendations:WeChat public account development tutorial

The above is the detailed content of What should I do if WeChat fails to obtain the user's openid?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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