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" />
精彩评论