Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to embed my own HTML5/flash video player in facebook wall post (using rails + koala)?

I would like to embed my own HTML5 (with a flash backup) player on a Facebook wall post. I'm using rails and ruby Koala. I have seen this: https://developers.facebook.com/docs/share/ for meta tags that can be added, but it's either for a link to my web page or to a video file to load.

Appreciate if anyone can help me :)

like image 338
Moozly Avatar asked Oct 08 '22 17:10

Moozly


1 Answers

http://www.longtailvideo.com/support/blog/19150/publish-your-videos-to-facebook-with-a-jw-player

Here's example of the og:tags on the link being shared so facebook can pickup the customer video player:

<meta property="og:type" content="movie" /> 
<meta property="og:video:height" content="260" /> 
<meta property="og:video:width" content="420" /> 
<meta property="og:video:type" content="application/x-shockwave-flash" />
<meta property="og:title" content="Big Buck Bunny" /> 
<meta property="og:description" content="Big Buck Bunny is a short animated film by the Blender Institute, part of the Blender Foundation." />
<meta property="og:image" content="http://www.example.com/bunny.png" />
<meta property="og:video" content="http://www.example.com/jwplayer/player.swf?file=http%3A%2F%2Fwww.example.com%2Fbunny.flv&autostart=true" /> 
like image 195
DMCS Avatar answered Oct 18 '22 09:10

DMCS