Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Embedding HTML5 content into Facebook wall posts?

I have managed to get a custom SWF embedded in Facebook wall posts. This can be done by adding special meta tags to the source code of the linked page. For example the respective source of a YouTube play page for this looks like the following:

<meta property="fb:app_id" content="87741124305">
<meta property="og:url" content="http://www.youtube.com/watch?v=qLkk3i4tMQw">
<meta property="og:title" content="Marco Huck vs Hugo Hernan Garay 10. Runde KO">
<meta property="og:description" content="...">
<meta property="og:type" content="video">
<meta property="og:image" content="http://i2.ytimg.com/vi/qLkk3i4tMQw/default.jpg">
<meta property="og:video" content="http://www.youtube.com/v/qLkk3i4tMQw?version=3&amp;autohide=1">
<meta property="og:video:type" content="application/x-shockwave-flash">
<meta property="og:video:width" content="398">
<meta property="og:video:height" content="224">
<meta property="og:site_name" content="YouTube">

However, this apparently only works for Flash content.

Recently, Facebook has added support for HTML5 videos originating from YouTube (used for playing video on iPad.) It would be quite interesting to know whether this is limited to YouTube. Does anyone know whether it is possible for the rest of us to embed HTML(5) code into Facebook wall posts? If so, how can it be done?

like image 281
starbugs Avatar asked Jul 19 '11 11:07

starbugs


2 Answers

Sorry, but there's currently no API to achieve what you suggest. HTML5 is a standard we're committed to though, so I wouldn't rule out this feature possibly being added in the future.

like image 185
Colm Doyle Avatar answered Sep 20 '22 05:09

Colm Doyle


I think this is possible now:

http://developers.facebook.com/docs/opengraph/

Check the lower part of the page. Just as in the HTML5 tag, you can define various sources now, starting with Flash Player and falling back to MP4 and so on. You'll lose the customized appearance, but at least the video will play.

like image 42
Jan Petzold Avatar answered Sep 20 '22 05:09

Jan Petzold