我嘗試使用通用模板,但它沒有爲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