从应用程序系统令牌发送whatsapp消息

问题描述 投票:0回答:1

我正在构建一个 Meta 应用程序,以将 Whatsapp 消息传递集成到我们的预约软件中。

第一步,我已经在我的应用程序中完成了oauth步骤,并且可以检查所有范围等都很好

/debug_token
响应:

{
    "data": {
        "app_id": "xxxxxxxxxx",
        "type": "USER",
        "application": "DaySchedule",
        "data_access_expires_at": 1686914263,
        "expires_at": 1684243122,
        "is_valid": true,
        "issued_at": 1679059122,
        "scopes": [
            "email",
            "business_management",
            "whatsapp_business_management",
            "whatsapp_business_messaging",
            "public_profile"
        ],
        "granular_scopes": [
            {
                "scope": "business_management"
            },
            {
                "scope": "whatsapp_business_management",
                "target_ids": [
                    "3166497446926227",
                    "100885679528085"
                ]
            },
            {
                "scope": "whatsapp_business_messaging",
                "target_ids": [
                    "3166497446926227",
                    "100885679528085"
                ]
            }
        ],
        "user_id": "xxxxx"
    }
}

在第二步,我已成功完成电话号码注册。

在第三步,我正在尝试发送消息

但是当我通过

PHONE_ID/messages
API 从注册的电话号码 ID 发送模板消息时,它会抛出权限错误。虽然已授予必要的许可
business_management, whatsapp_business_management, whatsapp_business_messaging

错误:

You do not have the necessary permissions required to send messages on behalf of this WhatsApp Business Account

我错过了什么吗?

facebook facebook-graph-api whatsapp
1个回答
0
投票

我也遇到同样的问题,请问你找到解决办法了吗?

© www.soinside.com 2019 - 2024. All rights reserved.