博客发布嵌入YouTube视频,链接并可在facebook上播放

博客发布嵌入YouTube视频,链接并可在facebook上播放,facebook,blogger,embedded-video,Facebook,Blogger,Embedded Video,在一个博客风格的博客上,第一天我可能在博客帖子中有一个图像,第二天我有一个YouTube视频,当将博客帖子链接到facebook时,facebook是否可能以在博客帖子中找到图像的方式查找和发布视频 我见过其他人谈论meta标签: <meta name="og:type" content="video"> // This is important so that OP will recognize your site as video streaming site like

在一个博客风格的博客上,第一天我可能在博客帖子中有一个图像,第二天我有一个YouTube视频,当将博客帖子链接到facebook时,facebook是否可能以在博客帖子中找到图像的方式查找和发布视频

我见过其他人谈论meta标签:

    <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标签只在博客/网页的页面中使用,所以这意味着我只能为整个博客设置一个视频,但是如果有嵌入视频的YouTube视频,我想使用嵌入在每个帖子中的视频试试这个。这可能在某种程度上对你有所帮助。元标记在这种情况下非常有用

<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

meta标记可以工作,但只适用于全局网页,特别是blogger,我只知道如何更新根网站的标题。因此,如果我使用这段代码,每次我链接一篇新的博客文章时,都会引用相同的视频,而不是每个博客文章中的新视频,并且facebook拒绝使用不在日志中的元标记