简体   繁体   English

共享网页时未显示的LinkedIn预览(和打开的图形)图像

[英]LinkedIn Preview (and open graph) images not displaying when sharing a webpage

For some reason anything my company tries to share on LinkedIn will post but the image will not load. 出于某种原因,我公司尝试在LinkedIn上分享的任何内容都会发布,但图片不会加载。 Whether that is any images on the page or the Open Graph image that is specified for that page. 无论是页面上的任何图像还是为该页面指定的Open Graph图像。 I also understand that LinkedIn has a 7-day cache for images like this, but this has been ongoing for over a month now. 我也知道LinkedIn有这样的图像的7天缓存,但这已经持续了一个多月了。

Here's an example: http://knowgreaterpartnership.com/100-days-in-a-minute/ 这是一个例子: http//knowgreaterpartnership.com/100-days-in-a-minute/

<html lang="en-US" prefix="og: http://ogp.me/ns#">

<meta property="og:type" content="article" />
<meta property="og:title" content="100 Days in a Minute" />
<meta property="og:description" content="Each week for the next 100 days, Buchanan&#039;s government relations professionals and attorneys will bring you 100 Days in a Minute, offering brief insights on President Trump&#039;s legislative and regulatory changes that will impact your business." />
<meta property="og:url" content="http://knowgreaterpartnership.com/100-days-in-a-minute/" />
<meta property="og:image" content="http://knowgreaterpartnership.com/wp-content/uploads/2017/01/100days-seo-facebook.jpg" />

When anyone tries to share this URL, the hyperlink will come up but no image. 当有人试图共享此URL时,超链接将出现但没有图像。 Now this page also has Open Graph meta tags to specify which image is shared. 现在,此页面还具有Open Graph元标记,用于指定共享哪个图像。 The image URL is valid and works on both Twitter and Facebook, but not here on LinkedIn. 图片网址有效,适用于Twitter和Facebook,但不适用于LinkedIn。

One workaround I know we can do is to X out of the blank image after pasting the URL and uploading a custom image. 我知道我们可以做的一个解决方法是在粘贴URL并上传自定义图像后从空白图像中取出X. However, when doing this from our company's page this feature blocks any further adjustments to the post where we can tag any @ names associated with the post. 但是,当从我们公司的页面执行此操作时,此功能会阻止对帖子的任何进一步调整,我们可以在其中标记与帖子相关联的任何@名称。

Any help would greatly be appreciated. 任何帮助将不胜感激。

Thanks 谢谢

Couple of things to check: 要检查的事情:

  1. The dimensions 1600x900 and size of 220kb are within LinkedIn's requirements. 尺寸1600x900和尺寸220kb符合LinkedIn的要求。 However, your aspect is 16:9 instead of 4:1 / 1:4. 但是,您的方面是16:9而不是4:1/1:4。
  • Max file size: 1 MB 最大文件大小:1 MB
  • Minimum image dimensions: 80 x 150 pixels 最小图像尺寸:80 x 150像素
  • Recommended aspect ratio: 4:1 or 1:4 推荐的宽高比:4:1或1:4

Making Your Website Shareable on LinkedIn 使您的网站在LinkedIn上可共享


  1. Your image URI is https, it could be they are unable to retrieve your image. 您的图片URI是https,可能是他们无法检索您的图片。 Have you tried with an http image? 你试过http图像吗?

Note: If the image meets the requirements, but it still does not appear in updates on LinkedIn, your website may be blocking us from pulling the image or the image may be located on a protected directory or website. 注意:如果图像符合要求,但仍未显示在LinkedIn的更新中,则您的网站可能阻止我们提取图像,或者图像可能位于受保护的目录或网站上。

Making Your Website Shareable on LinkedIn 使您的网站在LinkedIn上可共享


  1. Was the image change from the first time LinkedIn crawled your page for the image? 从LinkedIn第一次抓取您的页面图像时,图像是否发生了变化? They do cache for ~7 days. 他们会缓存~7天。

The first time that LinkedIn's crawlers visit a webpage when asked to share content via a URL, the data it finds (Open Graph values or our own analysis) will be cached for a period of approximately 7 days. LinkedIn的抓取工具第一次在被要求通过URL共享内容时访问网页时,它找到的数据(Open Graph值或我们自己的分析)将被缓存大约7天。

This means that if you subsequently change the article's description, upload a new image, fix a typo in the title, etc., you will not see the change represented during any subsequent attempts to share the page until the cache has expired and the crawler is forced to revisit the page to retrieve fresh content. 这意味着如果您随后更改文章的描述,上传新图像,修复标题中的拼写错误等,您将看不到在任何后续尝试共享页面期间所表示的更改,直到缓存已过期且爬虫为被迫重新访问该页面以检索新鲜内容。

Shared Content Caching 共享内容缓存

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM