Video Media Object
The object required for sending a video message. Can either be a self-hosted and publicly accessible video, or an existing Meta-hosted video in a supported format. Meta or self hosted options have different object requirements.
Meta Hosted Video
This video must already exist.
Example
{
"id" : "VIDEO_ID",
"caption" : "CAPTION"
}
Properties
id
: string — the video Id. This Id is returned in the response body when the video was first uploaded.caption
: string (optional) — text to be displayed with the video to describe the video.
Self Hosted video
The video must be readily accessible by public addresses.
Example
{
"link" : new URL( "https://www.example.com" ).href,
"caption" : "CAPTION"
}
Properties
link
: string — link to the publicly hosted video.caption
: string (optional) — text to be displayed with the video to describe the video.