简体   繁体   English

通过 WhatsApp Cloud API 发送请求返回权限错误

[英]Sending requests via WhatsApp Cloud API returns a permissions error

I wonder if someone can help.我想知道是否有人可以提供帮助。

I am trying to work with the WhatsApp API and via Postman, I am sending a request to我正在尝试使用 WhatsApp API 并通过 Postman,我正在向

https://graph.facebook.com/{{Version}}/{{Phone-Number-ID}}/messages https://graph.facebook.com/{{Version}}/{{Phone-Number-ID}}/messages

and this works great on the "Temporary access token" and messages send via Postman without a problem这对“临时访问令牌”和通过 Postman 发送的消息毫无问题

When I try and create a fixed Access Token under "Business Settings", I get the following response当我尝试在“业务设置”下创建固定访问令牌时,我得到以下响应

"Unsupported post request. Object with ID 'xxx' does not exist, cannot be loaded due to missing permissions, or does not support this operation" “不支持的发布请求。ID 为‘xxx’的对象不存在,由于缺少权限而无法加载,或者不支持此操作”

I'm generating the token with the following permissions我正在使用以下权限生成令牌

whatsapp_business_management whatsapp_business_messaging whatsapp_business_management whatsapp_business_messaging

Does anyone know what permissions are missing?有谁知道缺少什么权限?

Thanks in advance提前致谢

Sending via API without using the "Temporary access token"在不使用“临时访问令牌”的情况下通过 API 发送

It's all ok, I had not set the user to an admin没关系,我没有将用户设置为管理员

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM