我尝试使用通用模板,但它没有为GIF制作动画 - 这是在卡片底部显示'Powered by Giphy'横幅所需的 - 如下图所示。如何在Facebook Messenger API中像这样发送动画GIF?
animated GIF received in a messenger card/bubble
我尝试使用通用模板,但它没有为GIF制作动画 - 这是在卡片底部显示'Powered by Giphy'横幅所需的 - 如下图所示。如何在Facebook Messenger API中像这样发送动画GIF?
animated GIF received in a messenger card/bubble
你必须发送图像的附件,而不是一个通用模板,像这样:
curl -X POST -H "Content-Type: application/json" -d '{
"recipient":{
"id":"USER_ID"
},
"message":{
"attachment":{
"type":"image",
"payload":{
"url":"https://petersapparel.com/img/shirt.png"
}
}
}
}' "https://graph.facebook.com/v2.6/me/messages?access_token=PAGE_ACCESS_TOKEN"
看看这个页面:https://developers.facebook.com/docs/messenger-platform/send-api-reference/image-attachment
两个气泡。首先是形象,第二是广告。
我这样做没问题,问题是我需要在GIF的底部显示'Powered by GIPHY'横幅,这是不可能的,没有卡片/泡泡.... –
没有广告,问题解决了! :d – sotirelisc