带有嵌入式YouTube视频的Blogger帖子,可在Facebook上链接和播放

时间:2013-12-11 19:55:22

标签: facebook blogger embedded-video

在一个博客风格的博客上,我可能在博客文章中有一天图像,第二天有一个YouTube视频,将博客帖子链接到Facebook时,是否有可能让Facebook查找并发布视频在博客文章中找到图像的方式相同吗?

我见过其他人谈论“元标记”:

    <meta name="og:type" content="video"> // This is important so that OP will recognize your site as video streaming site like YouTube & Vimeo 
    <meta property="og:video:type" content="application/x-shockwave-flash"> // Don't Change this
    <meta property="og:video:width" content="Width in Pixels"> // player Width
    <meta property="og:video:height" content="Height in Pixels"> // Player Height
    <meta property="og:video" content="mySWFVideoPlayer.swf?url=Video_Soure"> // You will need to echo/print the Video Source (I.E. *.mp4) with a help of PHP or whatever your server uses

但是meta标签仅用于博客/网页,所以这意味着我只能为整个博客设置1个视频,但我想使用每个帖子中嵌入的视频(如果有的话)嵌入视频)

1 个答案:

答案 0 :(得分:0)

对于YouTube视频嵌入式试用此功能。这可能会以某种方式帮助您。 Meta标签以这种方式非常有用。

<meta name='og:title' content='Big Buck Bunny'/>
<meta name='og:type' content='movie' />
<meta name='og:url' content='http://testsite.com/testfile.html' /> //Your html meta tag file path
<meta name='og:image' content='http://testsite.com/image.jpg' /> //Your image path
<meta name='og:site_name' content='TestSITE'>
<meta name='og:description' content='Big Buck Bunny is a short animated film by the Blender Institute, part of the Blender Foundation.'/>
<meta property='og:video' content='http://testsite.com/jwplayer/player.swf?file=video.mp4' /> //Your video path with player
<meta property='og:video:height' content='640'>
<meta property='og:video:width' content='385'>
<meta property='og:video:type' content='application/x-shockwave-flash' />
<meta property='og:video' content='http://testsite.com/video.mp4' /> //Your Video
<meta property='og:video:type' content='video/mp4' /> //Your Video Type for Mobile
<meta property='og:video:type' content='text/html' /> //Video type for other