Facebook share link with more than one image

拟墨画扇 提交于 2019-12-12 11:23:09

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/33506661/facebook-share-link-with-more-than-one-image

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!