zapmore Posted July 30, 2013 Share Posted July 30, 2013 Hello, When someone share my website on their Facebook wall, Facebook automatically tries to fetch the description, name and logo of the website, however facebook fetches my slider image instead of my logo. When sharing products, everything works fine. In the facebook debugger, I get the following message: "Provided og:image is not big enough. Please use an image that's at least 200x200 px. Image 'http://......" I can't set OG elements like "og:image" since then I can't share products.... How can I solve this problem!? Link to comment Share on other sites More sharing options...
vekia Posted July 30, 2013 Share Posted July 30, 2013 is there any chance to check your website? i will check the facebook debugger + oG tags Link to comment Share on other sites More sharing options...
zapmore Posted August 2, 2013 Author Share Posted August 2, 2013 is there any chance to check your website? i will check the facebook debugger + oG tags Thank you for your answer, I sent you a PM. What I want to do is when people share the page on their facebook wall, I want the logo of my page to be shown as a thumb, if it isn't a product page. In that case I want the product image to be shown as a thumb. (the last part works today) 1 Link to comment Share on other sites More sharing options...
vekia Posted August 3, 2013 Share Posted August 3, 2013 the answer is in the facebook open graph tags, you have to define them (for products and for other pages too) there is no other way to achieve what you want. Without OG tags facebook will fetch automatically RANDOM content / images from page. Link to comment Share on other sites More sharing options...
zapmore Posted August 3, 2013 Author Share Posted August 3, 2013 (edited) Thank you for your input! I tried that but failed since I'm not use to smarty tags... What I need to do is something like the following: If(on product page){ <meta property="og:title" content="{$meta_title|escape:'htmlall':'UTF-8'}" /> <meta property="og:description" content="{$meta_description|escape:html:'UTF-8'}" /> <meta property="og:url" content="{$base_dir}" /> <meta property="og:image" content="{img_prod_dir}/smarty tag for current product image" /> }else{ <meta property="og:title" content="{$meta_title|escape:'htmlall':'UTF-8'}" /> <meta property="og:description" content="{$meta_description|escape:html:'UTF-8'}" /> <meta property="og:url" content="{$base_dir}" /> <meta property="og:image" content="{$img_ps_dir}/logo.jpg" /> } But don't know the variables for: Check if on product page Smarty for current product image Edited August 3, 2013 by zapmore (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted August 3, 2013 Share Posted August 3, 2013 well, in this case you can use some modules for open graph tags or just follow this tutorial: http://blog.dh42.com/using-the-product-image-in-og-tags/ Link to comment Share on other sites More sharing options...
zapmore Posted August 7, 2013 Author Share Posted August 7, 2013 well, in this case you can use some modules for open graph tags or just follow this tutorial: http://blog.dh42.com...age-in-og-tags/ Thank you for the link, I tried to follow the guide but it seems that the image creation override doesn't work for 1.5, any idea what to change? When I upload the override, my page just stop working... Link to comment Share on other sites More sharing options...
PrestaFanBoy Posted August 28, 2013 Share Posted August 28, 2013 is there any chance to check your website? i will check the facebook debugger + oG tags Hello Vekia, I do have the similar issue as mentioned above. When I share my product to facebook, its not capturing images. Can you suggest me what I might be missing. Currently, im using PS 1.5.3.1 and in Dev mode. I have attached a screenshot. Thank you. PrestaFanBoy Link to comment Share on other sites More sharing options...
vekia Posted August 28, 2013 Share Posted August 28, 2013 you need to include open graph tags into your website, there is no other way to achieve what you want. Link to comment Share on other sites More sharing options...
PrestaFanBoy Posted August 28, 2013 Share Posted August 28, 2013 you need to include open graph tags into your website, there is no other way to achieve what you want. Thank you Vekia for quick reply. I am not sure how to do this. In the above posts, there was link to Dh42 blog where it is explained how to include them in header.tpl. Does this work for products too? Or I need to do the same to products.tpl file os so I need to get hand on og tags.. PrastaFanBoy Link to comment Share on other sites More sharing options...
vekia Posted August 28, 2013 Share Posted August 28, 2013 As far as I remember his solution works only in ps 1.4 it is a bit more complicated in ps 1.5 Link to comment Share on other sites More sharing options...
PrestaFanBoy Posted August 28, 2013 Share Posted August 28, 2013 As far as I remember his solution works only in ps 1.4 it is a bit more complicated in ps 1.5 Omg..really? Why it was made complicated.. I try to refer to relevant posts here around and try to get it right. Thanks again for your guidance. PrestaFanBoy Link to comment Share on other sites More sharing options...
umbyte Posted December 4, 2013 Share Posted December 4, 2013 i have ps 1.5.3.1 facebook module share does not work. shares only the link without image, title and description. how can I do to fix questop problem? Link to comment Share on other sites More sharing options...
vekia Posted December 4, 2013 Share Posted December 4, 2013 it's not related to the module facebook share, but to the fact that your shop hasn't got open graph tags. open graph tags aremo more than necessary. Link to comment Share on other sites More sharing options...
umbyte Posted December 4, 2013 Share Posted December 4, 2013 so, how do I open graph tags ? Link to comment Share on other sites More sharing options...
vekia Posted December 4, 2013 Share Posted December 4, 2013 "open graph tags" is a facebook faeature, you have to add "open graph tags" to your shop. take a look here: http://ogp.me/ module: facebook open graph Link to comment Share on other sites More sharing options...
umbyte Posted December 5, 2013 Share Posted December 5, 2013 I have to edit the file header.tpl? Link to comment Share on other sites More sharing options...
vekia Posted December 5, 2013 Share Posted December 5, 2013 that's correct, you can put the there, betwen the <header></header> tags Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now