Reputation: 69
I'm trying to figure out why desktop client doesn't generate preview for urls from particular website.
For example, this url - https://est.ua/ru/press/9259664/
When I send this url from whatsapp on android, I correctly see a preview block. When I send this very url from whatsapp on windows desktop, I don't see a preview block at all.
Steps to reproduce the issue.
The problem occurs on steps 9-10 (on windows). There is a difference between steps 4-5 (on android) and steps 9-10 (on windows).
Here is a screenshot of a problem:
The first message (15:33) has been sent from whatsapp on desktop, and it somehow doesn't have preview. The second message (15:35) has been sent from whatsapp on android, ant it does have preview.
The mentioned page contains required og: metatags (og:type, og:image, og:title, og:description, og:url, og:site_name) and is correctly validated:
Tested on these:
So I have a question. What's wrong with previews on whatsapp on desktop? Or maybe something wrong with this particular url, what exactly then?
Upvotes: 6
Views: 5869
Reputation: 988
Also should make sure the source image is less than 300MB. Can't find an official statement on that. But did find that larger images wouldn't work and the same image of a smaller size (in bytes, not viewable pixels) worked. JPG can get smaller than PNG in most cases
Good reference https://stackoverflow.com/a/43154489/38841
Upvotes: 0
Reputation: 1
I had the same problem a time ago and I just figured out how to solve this.
in the meta tags I had the og:image
like this:
<meta property="og:image" content="images/image.jpg" />
And today I put the actual URL of the website instead of calling just the partial route and now the link preview works fine in WhatsApp Desktop. So now I have that og:image
meta tag like this:
<meta property="og:image" content="https://www.{your_website_domain}/images/image.jpg" />
Upvotes: 0
Reputation: 36443
I've found the issue for me personally was using WhatsApp in a corporate setting where SSL traffic (HTTPS) is being proxied. It seems that the self-signed internal certificates from the proxy cause the previews to not show.
Upvotes: 1