【发布时间】:2019-11-07 09:51:18
【问题描述】:
我正在创建 Facebook 消息。目前,我正在使用以下消息数据发送带有标题、副标题、图像和按钮的消息。
var messageData = {
recipient: {
user_ref: recipientId
},
message: {
attachment: {
type: 'template',
payload: {
template_type: 'generic',
sharable: true,
image_aspect_ratio: 'square',
elements: [ {
title: new_title,
subtitle: messageText,
image_url: new_image_url,
default_action: {
type: 'web_url',
url: new_link,
webview_height_ratio: 'tall'
}
}
]
}
},
metadata: "DEVELOPER_DEFINED_METADATA"
}
};
我希望能够在同一 Facebook 消息中添加视频。可能吗? 到目前为止,我已经看到您可以在单独的消息中发送视频,但不能使用带有标题、图像、副标题等的模板 (https://developers.facebook.com/docs/messenger-platform/send-messages#sending_attachments)
【问题讨论】:
标签: facebook facebook-messenger