admin管理员组文章数量:1406063
I am sending a template with a flow, and I want to send a payload. Therefore it needs to exchange data to initialize the flow. It gives me below error. Also someone reported the issue in meta also check this link. Does anyone have idea how to fix this issue?
Request URL
.0/{{Phone-Number-ID}}/messages
Request Body
{
"messaging_product": "whatsapp",
"to": "4234234234",
"type": "template",
"template": {
"name": "order_completation_without_registered_user",
"language": {
"code": "en_US"
},
"components": [
{
"type": "button",
"sub_type": "flow",
"index": "0",
"parameters": [
{
"type": "action",
"action": {
"flow_token": "234234234",
"flow_action_data": {
"is_registered_user": true
}
}
}
]
}
]
}
}
Below Error
{
"error": {
"message": "(#131009) Parameter value is not valid",
"type": "OAuthException",
"code": 131009,
"error_data": {
"messaging_product": "whatsapp",
"details": "Unexpected key \"flow_action_payload\" when \"flow_action\" is \"data_exchange\"."
},
"fbtrace_id": "AnVLLVsSsEu7O6HPeKeem85"
}
}
I am sending a template with a flow, and I want to send a payload. Therefore it needs to exchange data to initialize the flow. It gives me below error. Also someone reported the issue in meta also check this link. Does anyone have idea how to fix this issue?
Request URL
https://graph.facebook/v21.0/{{Phone-Number-ID}}/messages
Request Body
{
"messaging_product": "whatsapp",
"to": "4234234234",
"type": "template",
"template": {
"name": "order_completation_without_registered_user",
"language": {
"code": "en_US"
},
"components": [
{
"type": "button",
"sub_type": "flow",
"index": "0",
"parameters": [
{
"type": "action",
"action": {
"flow_token": "234234234",
"flow_action_data": {
"is_registered_user": true
}
}
}
]
}
]
}
}
Below Error
{
"error": {
"message": "(#131009) Parameter value is not valid",
"type": "OAuthException",
"code": 131009,
"error_data": {
"messaging_product": "whatsapp",
"details": "Unexpected key \"flow_action_payload\" when \"flow_action\" is \"data_exchange\"."
},
"fbtrace_id": "AnVLLVsSsEu7O6HPeKeem85"
}
}
Share
Improve this question
asked Mar 6 at 15:50
OnPrint CloudOnPrint Cloud
12 bronze badges
1 Answer
Reset to default 0Did you create the flow templates with "flow_action": "data_exchange"
? In that case, you can't pass flow_action_data
when sending the template as the flow will populate the initial data from your endpoint anyway.
If you need to include some data during sending the template, you can encode it the flow_token or store it in your backend in advance.
本文标签: Getting a problem while sending the whatsapp flow as a template with the dataStack Overflow
版权声明:本文标题:Getting a problem while sending the whatsapp flow as a template with the data - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744964546a2634862.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论