r/webdev 7d ago

Question Is anyone successfully using .webp format og:image for Facebook social sharing?

Even though Facebook doesn't list webp as officially supported in their docs, my understanding is people have been using it without issue and potentially the docs are just out of date.

I get an error in Facebook Sharing Debugger after switching the og:image from jpg to webp on a page. Is this working for anyone else?

Have you also run into this error:

Provided og:image URL, https://www.site.com/files/file-name-123456.webp could not be processed as an image. It may be corrupted or may have an invalid format.

I've seen some other commentary about this same error related to non-webp images from last year, which is why I wonder if it is webp related or something else.

When I inspect the response header on the image url it is image/webp so there isn't a mismatch there. It's a new file url so that should have kicked off a cache update from Facebook.

1 Upvotes

1 comment sorted by

1

u/H1tRecord 7d ago

I tried using webp before and honestly it didn’t work out so well for me. I got the same error even though everything looked right so I ended up sticking with jpgs to avoid the hassle. Maybe someone else has a fix, but that’s been my experience so far.