使用WhatsApp Cloud API发送商务经理目录产品
在成功将目录从Commerce Manager添加到WhatsApp Manager之后,我想通过WhatsApp Cloud API向用户发送此产品,我已经看到了与On-Permiss API相关的链接,但发现没有运气。
到目前为止,我的请求车身代码:
{
"interactive": {
"messaging_product": "whatsapp",
"to": "9***********",
"type": "product",
"body": {
"text": "text-body-content"
},
"footer": {
"text": "text-footer-content"
},
"action": {
"catalog_id": "11111111111111",
"product_retailer_id": "2222"
}
}
}
错误:
{
"error": {
"message": "(#100) The parameter messaging_product is required.",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "AZ-AFvM-Nsnm62de34st5mMJxzJ"
}
}
另一个请求
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to" : "**********",
"type": "interactive",
"interactive": {
"type": "product",
"body": {
"text": "body text"
},
"footer": {
"text": "footer text"
},
"action": {
"catalog_id": "1968701893374783",
"product_retailer_id": "5493"
}
}
}
Result: {
"error": {
"message": "(#131009) Parameter value is not valid",
"type": "OAuthException",
"code": 131009,
"error_data": {
"messaging_product": "whatsapp",
"details": "Interactive Message type, 'product' not supported. Supported types ['button', 'list']"
},
"error_subcode": 2494010,
"fbtrace_id": "AntQdhmCkgZ0Xtaz643Bgq"
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
更新:
它是从2022年8月25日开始支持,
产品
和product_list
cloud api ,但您可以在 on-Premises api api ,可能是仍在开发中,您可以跟踪Facebook社区中的对话,Update:
It is supporting from Aug 25, 2022,
There is no support for,product
andproduct_list
types in Cloud API, but you can use it in On-Premises APIMight be it is still in development, You can track the conversations in Facebook Community,