开放图谱协议:包含多个图像的原因是什么?

时间:2015-01-23 20:37:02

标签: html image facebook-graph-api layout opengraph

我的问题与this onethis onethis one有关,但完全不同。 URL http://ogp.me/列出了以下示例,其中在单个页面中定义了多个图像:

<meta property="og:image" content="http://example.com/rock.jpg" />
<meta property="og:image:width" content="300" />
<meta property="og:image:height" content="300" />
<meta property="og:image" content="http://example.com/rock2.jpg" />
<meta property="og:image" content="http://example.com/rock3.jpg" />
<meta property="og:image:height" content="1000" />

但是,该网站没有说明如何使用这些多个图像。我在想,Facebook可能会删除使用og:image属性指定的所有图像,并显示最符合浏览设备分辨率的图像。但我不确定这一点,需要确认。

如果我包含315x315 PNG图像和更大的1200x630图像,那么可以将其用作小图像,其文本对应于Facebook右侧显示的图像,另一个是全尺寸图像占据矩形而不是方形区域,下面的网站上描述的文字,然后Facebook如何决定是使用一个图像还是另一个? (就个人而言,我有一个方形徽标可供展示,因此较小的图像可能是最好的,文本对应于右侧的徽标,但我不确定是仅包含这两个图像中的一个还是两个图像? )

感谢您的回答!!!

1 个答案:

答案 0 :(得分:2)

通常,多个OG:图像标签允许用户根据正在读取OG标签的平台选择他们想要用于帖子的图像。 IE facebook或linkedin。