如何为注释中插入的链接设置打开图形图像的优先级顺序。 (不分享或挂帖。) [英] How to set priority order to Open Graph images for links that are inserted in comments. (Not sharing or wall posts.)

查看:155
本文介绍了如何为注释中插入的链接设置打开图形图像的优先级顺序。 (不分享或挂帖。)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当粘贴评论中的页面链接时,不直接作为墙贴,Facebook默认选择缩略图,用户无法选择相关缩略图。是否可以在具有多个og:image标签的页面上设置或确定og:image标签的优先级?似乎没有任何合理的方法来确定FB为何选择任何特定图像。他们选择的图像不是第一个或最后一个图像,按代码顺序或按名称按字母顺序排列,并没有真正遵循我能弄清楚的任何合理理由。有谁知道如何设置评论中选择的图像?

When pasting a link to a page within a comment, not directly as a wall post, Facebook defaults to choosing a thumbnail image, without users being able to choose the relevant thumbnail. Is it possible to set or determine priority for og:image tags on pages with multiple og:image tags? There doesn't seem to be any logical way to determine why FB is choosing any specific image. The image they are choosing isn't the first, or last image, by code order or alphabetized by name, and doesn't really follow any reasonable reason that I can figure out. Does anyone know how to set which image is chosen on comments?

我已经知道如何为墙贴,状态更新和共享链接执行此操作,但是您不知道在评论中发布链接时有缩略图选择器,因此能够优先处理多个图像的顺序将是理想的。

I already know how to do this for wall posts, status updates, and sharing links, but you do not have the thumbnail chooser when posting links within comments, so being able to prioritize the order of multiple images would be ideal.

推荐答案

我刚刚发现Facebook将首先尝试显示最佳图像(更高分辨率)。例如,如果我按以下顺序有3个元标记:

I have just found out that Facebook will try to display best images (higher resolution) first. For example, if I have 3 meta tags in following order:

<meta content='http://mysite/low-res.jpg' property='og:image'>
<meta content='http://mysite/med-res.jpg' property='og:image'>
<meta content='http://mysite/hi-res.jpg'  property='og:image'>

然后在Facebook对话框上显示的顺序为:

then the order of displaying on Facebook dialog will be:

hi-res.jpg
med-res.jpg
low-res.jpg

我希望它会有所帮助。

这篇关于如何为注释中插入的链接设置打开图形图像的优先级顺序。 (不分享或挂帖。)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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