当多个og:图像被刮除时,为什么Facebook sharer.php不会提供图像选择? [英] Why won't Facebook sharer.php provide a selection of images when multiple og:images have been scraped?

查看:99
本文介绍了当多个og:图像被刮除时,为什么Facebook sharer.php不会提供图像选择?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以这里是。现在,即使当多个图像元素被刮除时,FB只会选择1(基于包含和推断的属性):




So here is a page with multiple og:image elements:

<meta name="post-image" property="og:image" content="http://www.destinationtips.com/wp-content/uploads/2014/06/tiger-woods-elin-nordegren-1200x800.jpg">
<meta name="post-image" property="og:image" content="http://www.destinationtips.com/wp-content/uploads/2014/06/Sandy_Lane-1200x797.jpg">

However, when I click the sharer.php link on the page, Facebook only offers the 1st image.

I was under the impression that it should present 2 image options. I have re-scraped the URL many times and the Facebook Open Graph UI even hints that 2 images should be available:

Can you clarify how to get multiple images in the sharer UI?

解决方案

Still unsure why the sharer UI for multiple images has gone, but Facebook have updated the debugger, which no longer shows the multiple image selection buttons. Now, even when multiple image meta is scraped, FB will pick only 1 ("Based on included and inferred properties"):

这篇关于当多个og:图像被刮除时,为什么Facebook sharer.php不会提供图像选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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