Facebook与多个图像共享链接 [英] Facebook share link with more than one image

查看:199
本文介绍了Facebook与多个图像共享链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾经看过这份分享



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



他们如何创建一个这样的分享?有人知道吗?

解决方案

当网页具有多个图像的OpenGraph标签时,这是实现的。详情 here



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

 < meta property =og:imagecontent = https://photo1.lensculture.com/large/f7cae4af-f442-44fe-a162-0d2a0293dbdc.jpg/> 
< meta property =og:imagecontent =https://photo2.lensculture.com/large/b678eb67-da99-40a4-86df-6dde6d9d9aef.jpg/>
< meta property =og:imagecontent =https://photo0.lensculture.com/large/9492a534-9ac7-423a-8ff7-776a72fbce31.jpg/>

所以,如果你想在FB文章中显示多个图片链接,你应该添加og :图片标签到网页。



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


I've came across this share https://www.facebook.com/lensculture/posts/10153590621527368 from LensCulture:

and I was wondering how they managed to achieve a share like that, with multiple images/thumbnails. Basically each image forwards to the same link, which is https://www.lensculture.com/articles/joanna-mrowka-streets-of-the-world-piece-by-piece

How did they create a share like that? Does anyone know?

解决方案

This is achieved when webpage has OpenGraph tags with multiple images. Details here.

If you view source of the link, you can see 3 instances of og:image tag

<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" />

So, if you would like to display multiple images in a FB post with link, you should add og:image tags to the webpage.

FB examines the link, finds images and displays them in post.

这篇关于Facebook与多个图像共享链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆