Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook open graph image is not displayed on the first share, even though width and height are defined

During the last couple of weeks the window showing a shared page (before submitting the share) does not show the specified og:image on the first time the page is shared. The image is displayed on the shared post itself and on following share requests.

We ran our pages through the FB debugger and we got the following message

The provided 'og:image' properties are not yet available because new images are processed asynchronously. To ensure shares of new URLs include an image, specify the dimensions using 'og:image:width' and 'og:image:height' tags. Learn More

The problem is we do have the og:image:width and og:image:height tags defined and the FB debugger even shows them on the same page showing this message... See attached image below.

Any idea what may be causing this?

FB debugger screenshot

like image 939
mikelin Avatar asked Oct 30 '22 13:10

mikelin


1 Answers

I think it's a facebook bug as Alexey mentioned above. https://developers.facebook.com/bugs/184653232016624/

However, one work around appears to be to initiate a prefetch via their api.

curl -X POST \
-F "id=http://your.url/here" \
-F "scrape=true" \
"https://graph.facebook.com"
like image 194
Jason Little Avatar answered Nov 26 '22 00:11

Jason Little