Embedding HTML5 content into Facebook wall posts?

一笑奈何 提交于 2019-11-30 07:33:37

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.

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.

you can enable using this!

<meta http-equiv="Cache-control" content="no-cache">
<meta property="og:type" content="video/mp4" />
<meta property="og:video:height" content="260" /> 
<meta property="og:video:width" content="520" /> 
<meta property="og:video:type" content="video/mp4" />
<meta property="og:title" content="<?php echo $vtitle ?>" /> 
<meta property="og:description" content="<?php echo $vdis ?>" />
<meta property="og:image" content="<?php echo $vpic ?>" />
<meta property="og:video" content="<?php echo $vlink ?>" />" 

how ever it is required you also have a standered ssl on your website to post on facebook wall, with flash or html5.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!