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

Genoil picture Genoil · Apr 13, 2016 · Viewed 21.8k times · Source

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 url} could not be downloaded because it exceeded the maximum allowed sized of 8Mb

But the image referenced is only 108KB? One other time it responded that my server might be too slow. But when I simply load up the image in a browser it's instantly there. Where should I be looking now?

Answer

Luis Franco picture Luis Franco · Apr 27, 2016

This is a bug, and it's confirmed, after getting the warning, if you retry the debug, or click on "Scrape Again", the error message will be gone. This is an issue because if someone tries to share the post, the image will not show up since it didn't get scrapped, but subsequent shares will display the image.

You may subscribe to the Bug report or add some extra comments.

https://developers.facebook.com/bugs/1626463061012181/

And yeah, this started happening around April 17th, I hope this solves our issue.

EDIT:

Facebook Team replied with a workaround:

It seems like the issue is with the misleading error message which we will be updating. In the meantime, since the crawler has to see an image at least once before it can be rendered, it means that the first person who shares a piece of content won't see a rendered image. This seems to be the actual issue here and the workaround is available here: https://developers.facebook.com/docs/sharing/best-practices#precaching I will post here once we update the error message.

Adding the og:image:width and og:image:height Open Graph tags seems to do the trick, I can swear I tried that before and didn't do much, but this time it seems to work just fine.