: This article mainly introduces public account authorization settings. For more information about PHP tutorials, see. Weiphp background settings
Allows you to display the name of a public account and share and use the service number during user authorization.
Procedure
1: Open public account management in weiphp background-add
2: Enter the name of the public account, original ID, number
3: the public account can be found here.
4: After the input is complete, the next step is to provide the URL and token, and then configure the token in the background of the public account.
6. after the input is complete, record the key, appid, and appSecret. the input is here.
7: after you press save, select the service number you just filled in the upper right corner to switch to the current public number
8: Open the basic plug-in-custom menu-add
If it is added successfully, it is saved successfully. if it fails, it will automatically report an error. for example:
9 If the sharing succeeds, a green box is displayed, indicating that the sharing is successful. Next, change the sharing interface and enter your own sharing link domain name, for example, www.baidu.com.
10: Configure basic webpage authorization information (this function can be used only when the authenticated service number is used)
Enter the domain name information you want to authorize the callback
You can configure the authorization in the above 10 steps to use the authorization correctly.
Then, you can use the explicit authorization snsapi_userinfo on weiphp. click the green authorization window to check whether the window is set. if the window is consistent, it indicates that the authorization is successful.
The above introduces the public account authorization settings, including the content, hope to be helpful to friends who are interested in PHP tutorials.