I have looked at all the so called fixes for facebook image to show when sharing with no luck. Nobody on opencart seems to have a fix that works seemlessly. I am starting to think opencarts coding just does not suit these add ons.
The lack of Opencart Guru in all these discussions seems to suggest this.
facebook works better when no image is shown, if you share a link with an image and one without more often than not the one without an image gets a lot more views
Running OC 1.5.5.1 with vqmods.
http://www.aislings.co.uk
http://www.lovers-paradise-toys.co.uk
Hi That might be a valid point but my business is image orientated (art gallery) so it is important.
At the moment the product image does not show but a snippet of my logo instead.
The add ons are from "sharethis" & "addthis" both have the same result.
At the moment the product image does not show but a snippet of my logo instead.
The add ons are from "sharethis" & "addthis" both have the same result.
This is the code that I use in my header and images show correctly on facebook.
Code: Select all
<meta property="og:title" content="<?php echo $title; ?>" />
<meta property="og:type" content="product" />
<meta property="og:url" content="<?php echo $link['href']; ?>" />
<meta property="og:image" content="<?php echo HTTP_IMAGE.$fbimage; ?>" />
<meta property="og:site_name" content="<?php echo $name; ?>" />
<meta property="og:price:amount" content="<?php echo $price; ?>"/>
<meta property="og:description" content="<?php echo $description; ?>"/>
<meta property="og:price:currency" content="USD" />
<meta property="fb:admins" content="yourid" />
<meta name="copyright" content="Copyright xxx" />
<meta name="author" content="your company name" />
<meta name="email" content="your email" />
<meta name="Charset" content="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Rating" content="General" />
<meta name="Robots" content="INDEX, FOLLOW" />
<meta name="revisit-after" content="15 days" />
<meta name="Distribution" content="Global" />
Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
I used OC2PS extension which seemed to work for me - images are now the correct ones not just a random hompage one
Stokey
Thanks stokeyblokey, this made me sort out my problems with vqmod (don't go there...) and now all is good http://www.tikitiboo.co.uk
Cheers
Cheers
Here´s what I did as a work-a-round solution to get the site logo visible in sharing my site on facebook.
1. Create/ choose the image you wish to show (optimal minimum size: 470x246)
2. Upload the image to https://postimage.io/ and copy the DIRECT LINK
3. Edit header.tpl in "catalog --> view --> theme --> (your theme) --> template --> common"- folder
4. Insert this code to the top of the file:
5. Save file & Upload back to the server. (Replacing the old one)
6. Open facebook debugger tool: https://developers.facebook.com/tools/debug/sharing/
7. Input your website url in the sharing debugger
8. Now as it loads the result, the old image you are trying to replace probably pops up again, but now click on the "SCRAPE"- button so many times, that you see your new image in preview.
9. Done, congratulations!
I hope this helps somebody, I did quite a struggle myself to get this working.
1. Create/ choose the image you wish to show (optimal minimum size: 470x246)
2. Upload the image to https://postimage.io/ and copy the DIRECT LINK
3. Edit header.tpl in "catalog --> view --> theme --> (your theme) --> template --> common"- folder
4. Insert this code to the top of the file:
Code: Select all
<meta property="og:image" content="https://your-permalink-here" />
6. Open facebook debugger tool: https://developers.facebook.com/tools/debug/sharing/
7. Input your website url in the sharing debugger
8. Now as it loads the result, the old image you are trying to replace probably pops up again, but now click on the "SCRAPE"- button so many times, that you see your new image in preview.
9. Done, congratulations!
I hope this helps somebody, I did quite a struggle myself to get this working.
Who is online
Users browsing this forum: No registered users and 302 guests