Next.js: link thumbnail in Messenger or LinkedIn does not change
After changing the appearance of the page, the link still shows the old graphics or the old title.
Where's the problem coming from?
Social platforms cache Open Graph data. In addition, Next.js can generate a different og:image than expected.
What to do step by step?
1. Open the HTML source of the production page and find og:image, og:title and canonical.
2 . Check if the image URL works publicly without authorization and returns the correct format.
3 . When the graphics have changed, use the new version identifier in the image address.
4 . Use the diagnostic tools of the platform to re-download the preview if available.
5 . Compare Messenger, LinkedIn and a simple browser because each platform has a separate cache.
Correction test and important trap
New URL og:image returns a new image, and after the platform cache update they read the correct thumbnail.
Do not assume that refresh favicon will change the image of the shared link. It's separate metadata.