Tony Posted March 7, 2021 Share Posted March 7, 2021 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 More sharing options...
bsmither Posted March 7, 2021 Share Posted March 7, 2021 Please review these conversations for pertinent information: https://forums.cubecart.com/topic/54230-wrong-image-showing-when-pasting-link-to-facebook-message/ https://forums.cubecart.com/topic/55297-posting-website-link-online-default-image/ Link to comment Share on other sites More sharing options...
Tony Posted March 7, 2021 Author Share Posted March 7, 2021 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 More sharing options...
Tony Posted March 8, 2021 Author Share Posted March 8, 2021 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.