Post by xl5 » Tue Mar 18, 2014 2:01 am

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. :-\
Last edited by xl5 on Fri Mar 21, 2014 8:31 pm, edited 1 time in total.

xl5
New member

Posts

Joined
Mon Jul 18, 2011 3:45 pm


Post by sytra » Tue Mar 18, 2014 4:14 am

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


Active Member

Posts

Joined
Sat Feb 04, 2012 6:27 am

Post by xl5 » Tue Mar 18, 2014 5:28 am

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.

xl5
New member

Posts

Joined
Mon Jul 18, 2011 3:45 pm


Post by labeshops » Tue Mar 18, 2014 6:15 am

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.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by stokeyblokey » Tue Mar 18, 2014 9:58 pm

I used OC2PS extension which seemed to work for me - images are now the correct ones not just a random hompage one :)

Stokey


User avatar
Active Member

Posts

Joined
Sat Aug 31, 2013 10:19 pm

Post by xl5 » Fri Mar 21, 2014 8:31 pm

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 ;)

xl5
New member

Posts

Joined
Mon Jul 18, 2011 3:45 pm


Post by DonHermes » Fri Feb 10, 2017 6:46 pm

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:

Code: Select all

<meta property="og:image" content="https://your-permalink-here" />
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. O0

Newbie

Posts

Joined
Thu Jun 04, 2015 4:30 pm
Who is online

Users browsing this forum: No registered users and 302 guests