I have this endpoint that is currently working flawlessly for both photos and videos.
let mediaContainerUrl = `https://graph.facebook.com/${igUserId}/media`;
As per my users demand I also want to add the ability to upload a video thumbnail for videos uploaded to instagram.
will thumbnail_url
work as the video thumbnail parameter?
Here is what I tried:
let videoContainerParams = new URLSearchParams();
videoContainerParams .append('media_type', 'VIDEO');
videoContainerParams .append('video_url', videoUrl);
videoContainerParams .append('thumbnail_url', instagramVideoThumbnail); //Will this work for the video thumbnail?
Thank you.
Thumbnail URL is not supported by the API, you can only use thumbnail offset to choose which frame of the video will be used as thumbnail.
thumb_offset
Location, in milliseconds, of the video frame to be used as the video's cover thumbnail image. Default value is 0, which is the first frame of the video.