when i share products on any social networks products thumbnail images missing all time

please help me any buddy i'm use magento

enter image description here


2 Answers 2


You meta is having below image url:

<meta property="og:image" content="https://itsthyme.com/skin/frontend/base/default/images/catalog/product/placeholder/image.jpg"/>

and facebook is fetching that url for sharing.

You need replace the og:image meta tag with your product image.

  • can u send me more details where i replace it og:image in metatag please help me Commented Sep 29, 2016 at 14:43
  • That depends on the theme you installed.
    – Nidheesh
    Commented Sep 29, 2016 at 14:53
  • Great! Tick this as answer if this helper you, so that it will be helpful to other users with similar issue
    – Nidheesh
    Commented Sep 29, 2016 at 14:57

In your local.xml for the theme, between

   <reference name="head">


add in:

<block type="core/template" name="social.code" template="page/html/social-code.phtml"/>

Then create a new file in yourpackage/yourtheme/template/page/html and call it social-code.phtml.

Inside this file you can put meta tags for the main social media sites:

if (Mage::registry('current_product')) {
        $product    = Mage::registry('current_product');
        $product    = Mage::getModel('catalog/product')->load($product->getId());
} //load product information

<?php if ($product) : ?>
//echo product image URL below
<meta property="og:image" content="<?php echo $this->helper('catalog/image')->init($product, 'image')->resize(600,315); ?>" />
<!-- Other tags can go here, e.g. title, type, url -->
<?php endif; ?>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.