สัญญาณขาดหายบางส่วนshare-external
Message template not creating by using flow JSON
1

While trying to create a message template that uses flows through the API endpoint https://graph.facebook.com/v21.0/{META_BUSINESS_ID}/message_templates, I am encountering the following error: {'error': {'message': 'Invalid parameter', 'type': 'OAuthException', 'code': 100, 'error_subcode': 2388261, 'is_transient': False, 'error_user_title': 'Error Adding Flow Button', 'error_user_msg': 'The field flow_json contains invalid Flow json. Flow JSON validation failed due to an internal error. Please try again., line_start: 0, line_end: 0, column_start: 0, column_end: 0.', 'fbtrace_id': 'Ank3sFQHJO7ZavpWT6ch9Si'}}

However, when I use the same flow_json to create a flow in WhatsApp Manager, I am able to create and publish the flow successfully. Additionally, when I use the published flow_id while creating the message template, it works as expected. The error only occurs when attempting to create the template through the API using flow_json.

Cybrosys
ถามแล้ว ประมาณหนึ่งเดือนที่แล้ว
Cybrosys

This is the code provided in the documentation, link

{ "name": "example_template_name", "language": "en_US", "category": "MARKETING", "components": [ { "type": "body", "text": "This is a flows as template demo" }, { "type": "BUTTONS", "buttons": [ { "type": "FLOW", "text": "Open flow!", "navigate_screen": "WELCOME_SCREEN", "flow_action": "navigate", "flow_json": "{\"version\":\"5.0\",\"screens\":[{\"id\":\"WELCOME_SCREEN\",\"layout\":{\"type\":\"SingleColumnLayout\",\"children\":[{\"type\":\"TextHeading\",\"text\":\"Hello World\"},{\"type\":\"Footer\",\"label\":\"Complete\",\"on-click-action\":{\"name\":\"complete\",\"payload\":{}}}]},\"title\":\"Welcome\",\"terminal\":true,\"success\":true,\"data\":{}}]}" } ] } ] }

even this doesn't work.

20 ตุลาคม เวลา 23:59 น.
Cybrosys

it is working today

21 ตุลาคม เวลา 23:53 น.
Cybrosys

it is not working today

22 ตุลาคม เวลา 23:22 น.