Home >Backend Development >PHP Tutorial >weiphp WeChat public platform authorization settings, weiphp WeChat public platform_PHP tutorial
weiphp background usage settings
Realize the name of the official account and share the service account when the user authorizes it
Usage steps
1: Open public account management in weiphp background - new
2: Enter the official account name, original ID, and WeChat ID
3: You can find the official account here
4: After the input is completed, the next step is to provide the URL and token. Then it needs to be configured in the background of the WeChat official account
After 6 input is completed, record the key, appid and appSecret and enter them here
7: After pressing Save, select the service account information you just filled in in the upper right corner to switch to the current official account
8: Open the basic plug-in-custom menu-added
If the addition is successful, the saving will be successful. If it fails, it will automatically report the corresponding error, for example:
9 If successful, a green box will be displayed to indicate success. Then change the sharing interface and enter your own sharing link domain name correctly, such as www.baidu.com
10: Configure basic web page authorization information (only certified service accounts can use this function)
Enter the domain name information you want to authorize callbacks
After passing the above 10 steps, you can configure the authorization and use it correctly.
Then you can use explicit authorization snsapi_userinfo on weiphp. After viewing it, click the authorization green window to see if it is the window you set. If it is consistent, it means success