Reputation: 7321
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:
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
Reputation: 31
This is by design as per facebook --
I am still trying to figure out a way out of this .
Upvotes: 0
Reputation: 19
maybe try this.
change your source
http://www.youtube.com/watch?v=1CE6W5BubQo
into this
https://youtube.googleapis.com/v/1CE6W5BubQo
and
url or link to https://youtube.googleapis.com/v/1CE6W5BubQo
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'
},...
Upvotes: 4