Facebook分享了多个图片的链接

col*_*kin 4 share facebook

我从LensCulture 看到了这个分享https://www.facebook.com/lensculture/posts/10153590621527368:

在此输入图像描述

我想知道他们是如何通过多个图像/缩略图设法实现这样的分享.基本上每个图像都转发到同一个链接,这是https://www.lensculture.com/articles/joanna-mrowka-streets-of-the-world-piece-by-piece

他们是如何创造这样的份额的?有人知道吗?

tom*_*vat 7

当网页具有包含多个图像的OpenGraph标记时,就可以实现这一点.细节在这里.

如果您查看链接的来源,则可以看到3个og:image标记的实例

<meta property="og:image" content="https://photo1.lensculture.com/large/f7cae4af-f442-44fe-a162-0d2a0293dbdc.jpg" />
<meta property="og:image" content="https://photo2.lensculture.com/large/b678eb67-da99-40a4-86df-6dde6d9d9aef.jpg" />
<meta property="og:image" content="https://photo0.lensculture.com/large/9492a534-9ac7-423a-8ff7-776a72fbce31.jpg" />
Run Code Online (Sandbox Code Playgroud)

因此,如果您想在带有链接的FB帖子中显示多个图像,则应将og:image标签添加到网页.

FB检查链接,查找图像并在帖子中显示它们.