Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The access method of WeChat Mini Programs's third-party development platform

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

The editor of this article introduces in detail "the access method of WeChat Mini Programs's third-party development platform". The content is detailed, the steps are clear, and the details are handled properly. I hope that this article "the access method of WeChat Mini Programs's third-party development platform" can help you solve your doubts. Let's go deep into the editor's ideas and learn new knowledge together.

Access to the development of Wechat third-party platform

The steps to access the authorization process are as follows:

1. Receive the component_verify_ticket pushed by Wechat server

2. Obtain the third-party platform component_access_token according to the component_verify_ticket driven by Wechat server

3. Obtain the pre-authorization code pre_auth_code according to component_access_token

4. Provide the client with the interface to obtain the authorization page URL.

5. Receive notification after authorization (Ref. 9)

6. Exchange the official account or Mini Program's API call credentials and authorization information according to the authorization code (obtain authorizer_access_token and authorizer_refresh_token)

7. Refresh the API call credentials of the official account or Mini Program according to authorizer_refresh_token (authorizer_access_token will expire)

8. Get the basic information of authorized official account or Mini Program

9. Receive notification about push authorization (when the official account or Mini Program authorizes, revokes or updates the authorization to a third party, it will inform the developer through event push)

Problems encountered in access (pit):

1. The pre-authorization code has been authorized and cannot be used repeatedly

There is no limit to the number of requests to get a pre-authorization code, so a new authorization code is requested each time a web page is authorized. The pre-authorization code should not be reused. The expiration time of each authorization code is 600s, which means that one authorization code can only be authorized by one user in 600s.

2. The Wechat official account is authorized by the third-party platform Times "not bound with the official account".

There is no third-party platform published across the network, and you need to add the official account ID (such as gh_xxxxx) to the test account of the third-party platform before you can authorize it, otherwise you need to apply for network-wide release.

3. {"errcode": 40119, "errmsg": "invalid use button type hint: [T80906vr30]"

Through various verifications, if the official account authorized to a third-party platform does not have the permission to create a menu, the above error will occur when you use authorizer_access_token to create a custom menu.

After reading this, the article "how to access WeChat Mini Programs's third-party development platform" has been introduced. If you want to master the knowledge of this article, you still need to practice and use it before you can understand it. If you want to know more about related articles, welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report