Jump to content

Getting a Product Thumbnail to appear when sharing link on Facebook


Recommended Posts

Which 3rd party module? The facebook like one? Iwill investigate that.
However, I thought with shared links, you can specify meta tags on the page which will be picked up. So I have been trying to get the php together to pass a thumbnail for the product in the form

Link to comment
Share on other sites

ok will do...

of hand...do you know how to call the default image id for a product.

I am try to add to header.php a call to place the facebook share meta tags (og:title, og:description and og:image) when the page is a product detail page, but currently nothing is being generated. I suspect that since the page is built dynamically the header.php file, doesnt know what the product is and $product probably isnt even definied at that point. Is there another place i should generate these meta tags so that they are created properly?

Link to comment
Share on other sites

  • 2 months later...
  • 3 months later...
  • 4 weeks later...
  • 2 months later...
  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...