开发者

embedding content on facebook page

开发者 https://www.devze.com 2023-03-20 08:03 出处:网络
When I share YouTube v开发者_如何学Cideo link on Facebook, facebook renders video in page. Is that because YouTube supports something like oembed or facebook is doing something very custom for YouTub

When I share YouTube v开发者_如何学Cideo link on Facebook, facebook renders video in page.

Is that because YouTube supports something like oembed or facebook is doing something very custom for YouTube or combination of both?


Facebook will allow you to embed video as long as it is in SWF format, like youtube embeds. Use these open graph tags on your page:

<meta property="og:video" content="http://example.com/awesome.swf" />
<!-- these 3 are optional -->
<meta property="og:video:height" content="640" />
<meta property="og:video:width" content="385" />
<meta property="og:video:type" content="application/x-shockwave-flash" />
0

精彩评论

暂无评论...
验证码 换一张
取 消