Let*_*ion 2 youtube facebook-like
当facebook"赞"时,我想在元数据中附加YouTube视频.我应该将opengraph类型设置为什么?
我在http://ogp.me上找不到有用的答案,所以我去了这里.我得到的最接近的是如何通过youtube-video-link-through-facebook-graph-api,这是非常相关的,但更一般,并且从未提及类型.
也许在使用youtube视频时没有类型可以吗?
以下是YouTube在其网站上使用的og元数据示例.使用他们的模式你不会走得太远.
<meta property="og:url" content="http://www.youtube.com/watch?v=Y4MnpzG5Sqc">
<meta property="og:title" content="KONY 2012">
<meta property="og:description" content="KONY 2012 is a film and campaign by Invisible Children that aims to make Joseph Kony famous, not to celebrate him, but to raise support for his arrest and se...">
<meta property="og:type" content="video">
<meta property="og:image" content="http://i2.ytimg.com/vi/Y4MnpzG5Sqc/hqdefault.jpg">
<meta property="og:video" content="http://www.youtube.com/v/Y4MnpzG5Sqc?version=3&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">
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5055 次 |
| 最近记录: |