Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

thumbnail url for FB open graph Rate Topic   - - - - -

  • sap
  • Junior Member
  • Members
  • Join Date: 03-Oct 09
  • 113 posts

Posted 29 April 2013 - 12:05 PM #1

FB social plugins when integrated to the site, sometimes pick up random thumbnails from among the existing images on the page
I am trying to integrate a social plugin to the product pages - now when I do that the plugin picks up a random image instead of the product thumbnail

To fix this problem, FB suggests that I insert the following tag in the <head> section of the page
<meta property="og:image" content="URL of the thumbnail" />

For this to appear on every product page I need to get the variable from the cart that holds the thumbnail URL so that I insert <meta property="og:image" content="URL of the thumbnail" /> in the index.tpl

What is that variable?

Anyone any advice?