Instagram:尝试发送推回按钮时无效的消息数据错误



使用https://graph.facebook.com/v13.0/me/messages?access_token=pagetoken post url试图发送回推按钮。但是它给出的错误是:

"message": "(#100) Invalid message data",
"type": "OAuthException",
"code": 100,
"error_subcode": 2534015
**Request-body:**
{
"recipient":{
"id":"PSID"
},
"message":{
"attachment":{
"type":"template",
"payload":{
"template_type":"button",
"text":"Try the postback button!",
"buttons":[
{
"type":"postback",
"title":"Postback Button",
"payload":"DEVELOPER_DEFINED_PAYLOAD"
}
]
}
}
}
}

这个不再被instagram支持了,试试通用类型的post back按钮https://developers.facebook.com/docs/messenger-platform/instagram/features/generic-template

最新更新