我们在元业务平台上设置了一个目录,并将其连接到一个whatsap业务API帐户。目录设置为从我们的服务器提取
.csv
文件,这一切正常并正确上传产品。
问题是,当我们尝试使用 Whatsapp 云 API 发送消息时,它的表现就像没有具有这些 id 的产品
这是我们查询的url
https://graph.facebook.com/v16.0/<phoneid>/messages
这是请求体
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "<mynumber>",
"type": "interactive",
"interactive": {
"type": "product_list",
"header": {
"type": "TEXT",
"text": "Tester"
},
"body": {
"text": "test catagloue"
},
"action": {
"catalog_id": "739765567592966",
"sections": [
{
"title": "Category 1",
"product_items": [
{
"product_retailer_id": "8275a-mwnje--"
}
]
},
{
"title": "Category 2",
"product_items": [
{
"product_retailer_id": "puy84-bnlzx--"
},
{
"product_retailer_id": "1mdqj-d0xyl--"
}
]
}
]
}
}
}
这是我们得到的回复:
{"error":{"message":"(#131009) Parameter value is not valid","type":"OAuthException","code":131009,"error_data":{"messaging_product":"whatsapp","details":"None of the products provided could be sent. Please check your catalog."},"fbtrace_id":"AVOhyUrgCCiy-6xbYFCVzX7"}}
这告诉我其他所有内容都应该是正确的,例如令牌、numberid、catalogueid 等..
目录类型为:本地商业和配送 -> 菜单和商店项目。
我们确实做到了这一点,并向我们发送了带有电子商务类型目录的目录项目
因此,作为最后的手段,我们可以改用该方法,看看是否可以解决我们的问题。
我们尝试了不同的上传计划、固定和随机内容 ID,还尝试关闭上传计划以查看是否需要一些时间,但似乎没有任何效果。