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

Moozly picture Moozly · Feb 12, 2012 · Viewed 8.2k times · Source

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 :)

Answer

DMCS picture DMCS · Feb 12, 2012

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" />