How can I replace thumbnails of products image when sharing product URL on social media.

How can I replace thumbnails of products image when sharing product URL on social media.

Coludus
Tourist
8 0 2

I want to try to share my products on Twitter and Facebook.

But unfortunately, the product thumbnails were not what I want to show.

They show second image I uploaded.

How can I replace the thumbnails into the first image instead of second one?

Do I have to edit liquid codes or something?

 

Replies 2 (2)

jam_chan
Shopify Partner
909 23 184

By default, Shopify is using the product feature image as the product link preview image. You can use facebook debugger to scrape the link. Your result may be cached. 

BYOB - Build Your Own Bundles, SPO - SEO App to research keywords & edit social link preview

LitExtension
Shopify Partner
4860 1002 1151

Hi @Coludus,

You can find the 'og:image' tag and change the content:

<meta property="og:image" content="http:{{ product.featured_image | product_img_url: '1200x630' }}">

Hope it helps!

If you find my answer helpful for you, please mark it as a solution. Thank you and good luck

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify