I'm using FB.ui method to post image to facebook as described below:
FB.ui({
display: 'popup',
method: 'feed',
name: 'image',
link: 'link',
picture: 'image path',
caption: 'caption',
description: 'description'
}, function(response){
// do something
});
I'm able to post image successfully, but couldn't post video. I have tried, but failed.
FB.ui({
display: 'popup',
method: 'feed',
link: 'link',
picture: 'thumbnail image path',
source: 'https://example.com/media/video.mp4',
caption: 'caption',
description: 'description'
}, function(response){
// do something
});
above approach is posting feed, I'm looking video should play on facebook only instead of taking link of page.
I am not sure whether I'm missing something on video post OR approach it self wrong.
Could someone help on video, I would really appreciate.
Thanks