I’m using FB.ui to allow users to share something to their wall. It works fine, but I was hoping I could share a video – like you can do with the Open Graph tags. Here is my current code:
$('#share').click(function() {
FB.ui(
{
method: 'feed',
name: 'App name',
link: 'http://www.facebook.com/pages/mypage',
picture: 'http://url.com/picture.jpg',
caption: 'Type in a caption',
description: 'A description of the share',
});
});
With the Open Graph tags you can do the following:
<meta property="og:video" content="https://url.com/video.swf" />
<meta property="og:video:height" content="259" />
<meta property="og:video:width" content="398" />
<meta property="og:video:type" content="application/x-shockwave-flash" />
<meta property="og:image" content="https://url.comimage.jpg"/>
When Facebook scrapes your page, they put the image in the shared post with a “play” button, then when you click it the SWF shows up.
Is this doable with the JS SDK?
Thanks
The question is old, but here’s the answer:
More information here.