将HTML5内容嵌入到Facebook墙贴中? [英] Embedding HTML5 content into Facebook wall posts?

查看:107
本文介绍了将HTML5内容嵌入到Facebook墙贴中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设法获得嵌入在Facebook墙上的自定义SWF。这可以通过在链接页面的源代码中添加特殊的元标记来完成。例如,YouTube播放页面的相应来源如下所示:

 < meta property =fb:app_id content =87741124305> 
< meta property =og:urlcontent =http://www.youtube.com/watch?v=qLkk3i4tMQw>
< meta property =og:titlecontent =Marco Huck vs Hugo Hernan Garay 10. Runde KO>
< meta property =og:descriptioncontent =...>
< meta property =og:typecontent =video>
< meta property =og:imagecontent =http://i2.ytimg.com/vi/qLkk3i4tMQw/default.jpg>
< meta property =og:videocontent =http://www.youtube.com/v/qLkk3i4tMQw?version=3&amp;autohide=1>
< meta property =og:video:typecontent =application / x-shockwave-flash>
< meta property =og:video:widthcontent =398>
< meta property =og:video:heightcontent =224>
< meta property =og:site_namecontent =YouTube>

但是,这显然只适用于Flash内容。


$ b $最近,Facebook已经添加了对YouTube的HTML5视频的支持(用于在iPad上播放视频)。这是非常有趣的,这是否限于YouTube。有人知道我们其他人是否有可能将HTML(5)代码嵌入到Facebook墙上的帖子中?如果是这样,怎么办?

解决方案

抱歉,目前没有API可以实现您的建议。 HTML5是我们承诺的标准,所以我不排除将来可能添加的这个功能。


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?

解决方案

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.

这篇关于将HTML5内容嵌入到Facebook墙贴中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆