Facebook - 指定图像尺寸?

标签 facebook image facebook-opengraph

在 Facebook 上,我注意到图像的大小从 100x100 到 300x300 以上不等(在某些情况下更大)。我意识到其中一些可以使用 Open Graph 来完成,但是当我为我网站上的照片指定图像大小时,它会拍摄照片并将尺寸缩小到更小的尺寸。这在某种程度上是可以的,因为图像大小最初是 620x541,但它把它缩小到非常小的尺寸(大约 100x100),这使得图像上的文本很难阅读,在某些情况下,图像会变质,看起来很糟糕照片。

为什么有些照片是 300x300(大致),但 FB 将我的图像缩小到更小的图像?我已经使用 OGP 指定我想要拉取的图像,但有没有办法告诉 FB 不要将图像缩小到一定尺寸以下?这是我用于图像的 OGP:

<meta property="og:title" content="My Title" />
<meta property="og:type" content="article" />
<meta property="og:url" content="URL Path" />
<meta property="og:image" content="Image File Path" />
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="620" />
<meta property="og:image:height" content="541" />

最佳答案

这就是为什么,答案来自 NickWebmasters Stack Exchange

The reason some of the photos on your wall appear larger than the linked photo is that they have been reposted from one of your friend's photos that was initially uploaded to Facebook. i.e. They are not shared links to external websites.

Facebook shows your friend's photos with a large thumbnail, but external sites with a small thumbnail. There's no change you can make to your site to get it to use larger thumbnails. It's just how Facebook works at present.

If you wanted the images to appear bigger in other people's streams, you could upload them as images to your Facebook page (or to an official Facebook page for your site), and get people to like the photos you've uploaded to Facebook directly instead of liking the link to the page containing the photo on your site.

关于Facebook - 指定图像尺寸?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8041780/

相关文章:

Facebook Graph API 位置数据丢失,但在 FB 网站搜索中可见?

javascript - 向下/向上滚动时显示白屏

php - 在故事中间动态添加图像

ios - 使用 Swift 创建 Facebook Open Graph 对象

jquery - 更新 html 标题和元数据 :title with jquery

Facebook Messenger 平台发送本地镜像附件

html - Facebook 点赞按钮与 IOS 上的其他链接重叠

jquery - 如何使用 jQuery 单击图像来查找图像的名称?

facebook - 基于 Open Graph iframe 的视频嵌入支持?

Firefox : "Couldn' t parse invalid source chrome-extension"中的 Facebook JS API 初始化错误