botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

How to send video attachments on fb messenger

Open aniketisin opened this issue 10 years ago • 4 comments

Hi, I want to send video attachments. The following code doesn't work

Message replyMessage = new Message(); replyMessage.Text = "Video Attachment"; replyMessage.Attachments = new List(); replyMessage.Attachments.Add(new Attachment { ContentUrl = "https://www.youtube.com/watch?v=JaXJkbz5vxk", ContentType = "video/mp4" }); return replyMessage;

Facebook mesenger docs say that it supports mime-type = video/mp4

What is the correct way of sending video attachments?

aniketisin avatar Jun 01 '16 12:06 aniketisin

Facebook Messenger docs say:

attachment.type --> Type of attachment, may be image or template

https://developers.facebook.com/docs/messenger-platform/send-api-reference

Where do you see information that says they will accept video?

tomlm avatar Jun 01 '16 15:06 tomlm

This is not supported by facebook messenger.

tomlm avatar Jun 21 '16 17:06 tomlm

Facebook supports videos now. https://developers.facebook.com/docs/messenger-platform/send-api-reference/video-attachment

brentzucker avatar Sep 09 '16 16:09 brentzucker

this is supported by us exactly as your original question.

ghost avatar Sep 12 '16 22:09 ghost