Jump to content

Using product image as thumbnail in FB post


Tony

Recommended Posts

Hey all,

When I post a link to the product item itself on Facebook, it uses the images from the banner of the store.

Is there a way for FB to pull the image of the product itself so it shows up in FB post as a thumbnail?

Thanks.

Link to comment
Share on other sites

Thanks for that - I did see it.

Confirmed with FB Dev Tool that image_src is showing the correct url to the product image, but FB Debug isn't picking it up. And it's not showing what  I added in the {if $FBOG} statement.

Puzzling... but will keep testing.

Link to comment
Share on other sites

Got it to work by putting the code outside the FBOG statement

But I got this in FB Debug

Provided og:image URL, https://xxxx.co.uk/images/cache/Stock/xxxxxxxx.200.jpg was not valid because it did not meet the minimum size constraint of 200px by 200px.

Cubecart seems to generate the images smaller therefore not meeting FB requirements... not sure how to get round to this.

 

EDIT

<meta property="og:image" content="{$PRODUCT.medium}">

That did the trick, finally!!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...