og:image and special characters

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
keep2000
Phoca Enthusiast
Phoca Enthusiast
Posts: 54
Joined: 14 Nov 2022, 12:04

og:image and special characters

Post by keep2000 »

Hi,
We use the intro image as og:image, but sometimes the filename contains special characters, like á, é, ó, etc.
For example: mydomain/images/uploads/content/2024/11/láz.jpg.

In this case, Facebook doesn't use it and says:
"Provided og:image URL could not be processed as an image. It may be corrupted or may have an invalid format."

When I rename it to laz.jpg and update the article config, the image works fine.

I was wondering if this issue is maybe related to URL encoding or something similar? I tried setting it as l%C3%A1z.jpg, but I got the same error message.

Any idea what might be causing this? I’d prefer not to rename all my images.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48416
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: og:image and special characters

Post by Jan »

Hi, I think, you need to ask Facebook developers if there is a way to accept such image names. :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply