LinkedIn shows an old Magento 2 product image. Check Open Graph and the preview cache

2 min read

Two silver link previews with different versions of a product photo beside a refresh symbol

If LinkedIn shows an older picture, compare the product page source, the response from the picture’s URL and the preview. Start with the exact address you plan to share.

Read the metadata and open the image without signing in

Note the final product URL after redirects. Check og:url and every instance of og:image in the HTML source. Meta OG 1.0.27 uses the specific OG image for the product or, when the field is empty, the catalogue image if available. Open the image in a fresh session and record the final URL, status and media type. If the source or file still shows the earlier revision, correct that part of the shop first. Kowal Meta OG. Module documentation.

Record the refreshed preview

The local test ran the module with a sample preview cache. For https://shop.example/product-a.html, both pictures had separate addresses under /media/catalog/product/. Once the tag changed, the source showed the new image. The stored preview fetched it after the refresh.

Readings from the local preview refresh
RunTime UTCImage in the sourceFile responsePreview image
Before the change18:36:41.449og-v1.jpg200 image/jpegog-v1.jpg
After updating the shop18:36:41.464og-v2.jpg200 image/jpegog-v1.jpg
After a fresh fetch18:36:41.470og-v2.jpg200 image/jpegog-v2.jpg

When the source and public image are correct, paste the exact product address into LinkedIn Post Inspector. Record the date, time, result and picture in a new post’s preview. LinkedIn describes this refresh for new shares. Existing published posts keep their previous preview. LinkedIn Post Inspector instructions.

For the title, description and image fields, see the earlier Meta OG guide.

Previous Next

KOWAL.BLOG

Choose your language

Available versions open the corresponding page. More languages are being prepared.

English (UK) Français Deutsch Español Italiano Português Nederlands Svenska Dansk Norsk Suomi Lietuvių Latviešu Eesti Čeština Slovenčina Magyar Română Български Ελληνικά Slovenščina Hrvatski Polski English (US)