facebook在实现“点赞”时如何选择图片?具有多个 og:image 的功能
这就是我想要做的:我在一个页面上的元标记中有大约 20 个 og:image ,在此页面上我有一个“喜欢”按钮和一个“分享”按钮(已弃用的按钮)。我需要所有 20 个 og:image 来实现共享功能,并且我希望 Facebook 在构建弹出窗口(或“弹出窗口”)时选择特定的图像,该图像也将是显示在发布后的 Facebook 墙。
目前,弹出窗口中的图片是第一张 og:image
,但是当我发布并转到我的 Facebook 墙上时,Facebook 选择了另一张图片来显示(og:image 的第 7 张图片)
列表,更准确地说)。
我在共享功能上遇到了几乎相同的问题,我无法获取第一个 og:image
作为可用缩略图列表的第一个缩略图。 og:image
列表中的第 7 个图像始终是第一个建议的缩略图。
有人知道Facebook之类的挑选算法吗?我到处寻找,却找不到任何关于这方面的线索。
我尝试交换图像,但必须避免将相同的图像放置两次(第一次和第七次)。我真的需要一些帮助。
谢谢
Here's what I'm trying to do : I have about 20 og:image
in meta tags on one page, and on this page I have both a like button AND a share button (the deprecated one). I need all the 20 og:image
for the share feature, and I want Facebook to pick a particular image when building the popup window (or "flyout"), which will also be the image displayed on a facebook wall after publishing.
Currently, the picture in the popup window is the first og:image
, but when I publish and go on my facebook wall, facebook picked another picture to display (the 7th of the og:image
list, to be more precise).
I got nearly the same problem on the share feature, I can't obtain the first og:image
to be the first thumbnail of the available thumbnails list. The 7th image in og:image
list is always the first thumbnail proposed.
Anyone knows the picking algorithm of Facebook or something? I've been searching everywhere and I can't find a single clue on this.
I tried to swap images but I have to avoid putting the same image twice (1st and 7th). I really need some help.
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为它应该是随机的 - 不管怎样,如果你只想要一张图像,只需使用一个 og:url 标签
I think it's supposed to be random - regardless, if you only want one image, just use one og:url tag