01/10/2025 10:53:00
Problem description
Launching the WeChat relationship returns "48001, api unauthorized".
Causes of the problem
There are two cases:
- The appid of the invoker does not have the WeChat relationship interface permission.
- If the appid of the invoker has the WeChat relationship interface permission, the player may not authorize APP to obtain the friend relationship when launching the WeChat authorization page, as shown in the figure. When clicking the "Reject" button, the player does not authorize App to get the friend relationship.
Solution
- If you need to apply for WeChat platform's relationship interface permission, please refer to the following link to learn the application process: Click View
- Guide the player to authorize App to obtain friend relationships when launching the authorization page.
Remarks
Since the WeChat authorization page cannot be displayed to the player every time the player logs in, if you want to display the page for the player to choose, the quick processing method is as follows (due to the update of the WeChat client, the corresponding path may change, so the actual version display shall prevail):
WeChat client: Me---Settings---Privacy---My Information & Authorizations---Authorizations---Find the Corresponding Application---Remove Authorization---Choose to Use Wechat Login again through APP.
Copyright © 2025 MSDK.
All rights reserved.
All rights reserved.