og:image for WhatsApp is not working
I have implemented the open graph image using the
<meta name="og:image" content="assets/og-image.jpg"/>
tag and it was functioning properly until recently when I noticed it's no longer working on WhatsApp.
The og:image is appropriately sized at 1200x630. I'm hosting my site on Cloudflare and what's peculiar is that I've used this exact code for several other sites; it seems to work for some while it fails for others.
Can anyone suggest how to resolve this issue?2 Replies
I think it will be solved if you reference the full url of the image. https://yourdomain.com/assets/bg-image.jpg
ref: https://ogp.me/
Open Graph protocol
The Open Graph protocol enables any web page to become a rich object in a social graph.