Johnny
Johnny

Reputation: 7321

Using Facebook's API to post a video using the feed dialog fails

I'm trying to post a video to a user's timeline using Facebook's feed dialog. When I use the javascript SDK with:

FB.ui({
     method:'feed',
     name: 'testing',
     link: 'http://www.facebook.com',
     picture: 'http://img.youtube.com/vi/1CE6W5BubQo/0.jpg',
     source: 'http://www.youtube.com/watch?v=1CE6W5BubQo'
});

I get:

As you can see, no thumbnail and no video player

And this is missing the thumbnail and video player. I tried adding type: 'video' to the parameters and I also tried replacing the source parameter with a direct link to the .swf file, but that didn't help. I'm not sure if this is a bug or if I'm doing something wrong. Any ideas?

Upvotes: 2

Views: 8790

Answers (3)

Vikash Singhal
Vikash Singhal

Reputation: 31

This is by design as per facebook --

https://developers.facebook.com/bugs/589975484398226?browse=external_tasks_search_results_526fc388b99e18881434478

I am still trying to figure out a way out of this .

Upvotes: 0

林果皞
林果皞

Reputation: 7793

Do like that:

FB.ui(
  {
    method: 'feed',
    name: 'testing',
    link: 'http://www.facebook.com',
    picture: 'http://img.youtube.com/vi/1CE6W5BubQo/0.jpg',
    //caption: '',
    description: '',
    source: 'https://www.youtube.com/v/1CE6W5BubQo?version=3&autohide=1&autoplay=1'
  },...

enter image description here

Upvotes: 4

Related Questions