og:image could not be downloaded because it exceeded the maximum allowed sized of 8Mb

后端 未结 4 486
醉话见心
醉话见心 2021-02-01 13:02

Building a website that requires sharing links with an image. Done this I don\'t know how often...but this time the Facebook Open Graph Debugger says:

og:image {image ur

4条回答
  •  礼貌的吻别
    2021-02-01 13:26

    This continues to be an issue in May 2017. I tried:

    • adding og:image:width and og:image:height
    • manually resizing the img to 1200x630 (FB's recommended minimum)
    • rounding the size to the nearest hundredth (a sol'n I saw elsewhere)
    • confirming that the filesize was indeed well below the 8MB (it's 322 KB)
    • renamed the file to exclude non-alpha characters
    • converting img to jpg.

    The only "solution" in my case was to run the FB Sharing Debugger on the non-https:// version of the webpage (i.e. simply http://). Then the "og:image could not be downloaded because it exceeded the maximum allowed sized of 8Mb" error msg disappeared. FWIW, FB did show the 301 redirects from the http: to the https:.

    (I would have posted this as a comment but do not have enough cred yet.)

提交回复
热议问题