Provided og:image url encountered an unknown error
Asked Answered
J

4

25

Yesterday I attempted to share a web page on Facebook, specifically https://share.novamanus.com/ad/659, however this did not preview correctly on Facebook. When I attempted to scrape this with the Facebook Open Graph Debugger I saw an error I've not encountered previously.

Provided og:image url, https://novamanusprod.blob.core.windows.net/nmphoto/thumb_aa76caf4-f394-402a-a84a-58124222b6b4.jpeg encountered an unknown error.

There was no additional information elaborating about what was going on. The response from the web page was HTTP 200.

enter image description here

I could at the same successfully access the image url directly, but attempts to re-scrape the page with the Facebook Open Graph Debugger resulted in the same error message.

What could possibly be causing this? 30-40 minutes after this attempt everything worked perfectly. I've not been able to reproduce the issue thus far, nor has Azure blob storage logs told me anything.

Jamal answered 9/11, 2017 at 12:10 Comment(6)
Have you found a solution?Komatik
@Komatik Sadly no, this was a one time thing and I've not experienced anything like it since.Jamal
Thank you for your reply, For my case, it was due to the size/resolution of the image, I have downsize it, and it worked!Komatik
@Komatik what image size solved the problem for you?Humblebee
2256 × 1128 has worked for me, Here's what I've found on FB developers.facebook.com/docs/sharing/best-practices#images but It doesn't specify what is the maximum size ...Komatik
I encountered this same problem and it was automagically fixed about 10 minutes later--must be something to do with FB caching (as mentioned in several other SO posts).Palomo
S
5

I've encountered this same error and I checked the docs.

According to the documentation it recommends:

  1. Optimize images to generate great previews Image Sizes Use images that are at least 1080 pixels in width for best display on high resolution devices. At the minimum, you should use images that are 600 pixels in width to display image link ads. We recommend using 1:1 images in your ad >creatives for better performance with image link ads.

https://developers.facebook.com/docs/sharing/best-practices#images

Since adding an image which has the minimum width of 1080px width this resolved my problem.

Selfconsistent answered 13/11, 2018 at 11:3 Comment(2)
Making the image 1,200 pixels wide and 628 pixels tall did the trick for me. Looks like if the image was too large, it will be a problem as well. Not 100% sure...Grin
@Grin this was the only thing that worked for me... silly facebook! Thanks for your advice!Lied
V
3

I also had this problem recently and I fixed it by uploading a smaller file (about 1024px wide, 72dpi ~ 100kb), it worked. I had to open the Facebook debugger and ask it re-scape the page.

Venusian answered 16/8, 2018 at 13:20 Comment(0)
L
0

I know it may sound dumb but it did work for me, most propably your photo format was PNG, change it to JPG and it should be fine.

Lucre answered 19/9, 2023 at 19:30 Comment(1)
It was a JPG image with a jpeg extension, so not PNG.Jamal
F
-3

It solved by

<meta property="og:url" content="FULL_PAGE_URL" />
<meta property="og:image" content="FULL_IMAGE_PATH" />
Frangos answered 17/1, 2022 at 12:51 Comment(2)
This question is five years old. The Facebook framework has likely changed many times since the original question was posted. The original issue is most likely not reproducible any more and there may be a ton of reasons why it didn't work and why it now works. Using the meta tags you have specified here is probably not what would have solved my original problem.Jamal
may be, but my problem was solved with this... so I have shared it.Frangos

© 2022 - 2024 — McMap. All rights reserved.