1

在博客风格的博客上,前一天我可能在博客文章中有一张图片,第二天有一个 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

但元标签仅用于博客/网页,所以这意味着我只能为整个博客设置 1 个视频,但我想使用嵌入在每篇文章中的视频(如果嵌入了视频)

4

1 回答 1

0

对于嵌入的 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
于 2013-12-12T10:00:05.467 回答