05/15/2024 15:19:45

Problem description

Launching the WeChat relationship returns "48001, api unauthorized".

Causes of the problem

There are two cases:

  1. The appid of the invoker does not have the WeChat relationship interface permission.
  2. 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.

Image description

Solution

  1. 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

Image description

  1. 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 © 2024 MSDK.
All rights reserved.

results matching ""

    No results matching ""