Page 3 of 3
Re: FIXED! Add Facebook Product Share w/Product Image Suppor
Posted: Sat Nov 22, 2014 8:59 am
by gocreative
It should do.
Re: FIXED! Add Facebook Product Share w/Product Image Suppor
Posted: Tue Nov 25, 2014 10:29 pm
by deal1668
hi there,every one fix this problem for opencart 2.0,pls issue vqmod file,thanks for share
Re: FIXED! Add Facebook Product Share w/Product Image Suppor
Posted: Fri Dec 05, 2014 2:55 am
by LuboUzunov
comprido wrote:In your theme header.tpl:
Code: Select all
<!-- mod og:image para FB -->
<?php if ($thumb || $images) { ?>
<meta property="og:image" content="<?php echo $thumb; ?>">
<?php } else { ?>
<meta property="og:image" content="<?php echo $logo; ?>">
<?php } ?>
<!-- mod og:image para FB -->
In controller/common/header.php, just after: $this->data['name'] = $this->config->get('config_name'); :
Code: Select all
if (isset($this->request->get['product_id'])) {
$product_id = (int)$this->request->get['product_id'];
} else {
$product_id = 0;
}
$this->load->model('catalog/product');
$product_info = $this->model_catalog_product->getProduct($product_id);
$this->data['product_info'] = $product_info;
if ($product_info['image']) {
$this->data['thumb'] = $this->model_tool_image->resize($product_info['image'], $this->config->get('config_image_thumb_width'), $this->config->get('config_image_thumb_height'));
} else {
$this->data['thumb'] = '';
}
$this->data['images'] = array();
This code fix the problem for me.
Thanks man! It works perfectly!
Re: FIXED! Add Facebook Product Share w/Product Image Suppor
Posted: Wed Dec 10, 2014 1:33 am
by mRC
not working Version 1.5.6.4 just tried it
Re: FIXED! Add Facebook Product Share w/Product Image Suppor
Posted: Sat Jan 24, 2015 7:38 am
by salesn
How to fix Fb share in OpenCart 2.0.1.1? Has anyone managed to solve this alone?
Re: FIXED! Add Facebook Product Share w/Product Image Suppor
Posted: Fri Jun 26, 2015 5:51 pm
by mayursthakor
is any Facebook Product Share w/Product image extension is available for opencart 2.0.1.1 ?
Re: FIXED! Add Facebook Product Share w/Product Image Suppor
Posted: Mon Oct 05, 2015 9:16 pm
by debbiekipt
I am having a similar issue with trying to share blog posts using the Facebook Share button, using Journal2 theme on 1.5.6.4 opencart installation.
I tried the code given in this thread but saw no change.
When I try to share a product, it does show the image, but no product name or info.
When trying to share a blog post it just shows text 'share.es' and shows website name only.
Has anyone experienced this or solved it in 1.5.6.4 willing to share how? :-)
Many thanks!
Re: FIXED! Add Facebook Product Share w/Product Image Suppor
Posted: Sun Nov 08, 2015 5:57 am
by Flysan
It doesn't work on OC 2.0.2.0, how update?
Re: FIXED! Add Facebook Product Share w/Product Image Suppor
Posted: Sat Jan 30, 2016 9:09 pm
by fakb
Hello,
is there way to make this fix working in Opencart 2.0.2.0, default theme, no vQmod. I have the problem with wrong image shown in facebook, when a product is shared from product page. Always store logo is shown instead product image.
comprido wrote:In your theme header.tpl:
Code: Select all
<!-- mod og:image para FB -->
<?php if ($thumb || $images) { ?>
<meta property="og:image" content="<?php echo $thumb; ?>">
<?php } else { ?>
<meta property="og:image" content="<?php echo $logo; ?>">
<?php } ?>
<!-- mod og:image para FB -->
In controller/common/header.php, just after: $this->data['name'] = $this->config->get('config_name'); :
Code: Select all
if (isset($this->request->get['product_id'])) {
$product_id = (int)$this->request->get['product_id'];
} else {
$product_id = 0;
}
$this->load->model('catalog/product');
$product_info = $this->model_catalog_product->getProduct($product_id);
$this->data['product_info'] = $product_info;
if ($product_info['image']) {
$this->data['thumb'] = $this->model_tool_image->resize($product_info['image'], $this->config->get('config_image_thumb_width'), $this->config->get('config_image_thumb_height'));
} else {
$this->data['thumb'] = '';
}
$this->data['images'] = array();
This code fix the problem for me.
Re: FIXED! Add Facebook Product Share w/Product Image Suppor
Posted: Sat Jan 30, 2016 10:30 pm
by OSWorX
Re: FIXED! Add Facebook Product Share w/Product Image Suppor
Posted: Wed Jun 15, 2016 7:25 pm
by vincent_angbt
Hi,
are u able to solve the issue ?
Re: FIXED! Add Facebook Product Share w/Product Image Suppor
Posted: Wed Sep 28, 2016 12:11 am
by ljubas75
Hi,
I think I managed to solve the problem of sharing pictures on Facebook!
I tried everything I found on forums and all the plugins and nothing gave results.
The problem is solved on HOSTING. cPanel - security - hotlink protection - Allow direct requests. And that's it
Maybe someone still be useful...
Sorry my Englesh is not native

Re: FIXED! Add Facebook Product Share w/Product Image Suppor
Posted: Sun Oct 30, 2016 2:33 pm
by agatha65
Here is working solution for the sharing on Facebook:
SEO Facebook Open Graph Tags
Re: FIXED! Add Facebook Product Share w/Product Image Suppor
Posted: Tue Nov 29, 2016 2:10 am
by sunsys
Hi, I have installed your extension and there is surely an improvement in facebook sharing but in many products I find that og:description tags remains empty
<meta property="og:description" content="" > and the description displayed below the shared image is picked up from the footer portion of my store, I don't know how it picks up that information only and that too consistently for products where this problem occurs.
Please kindly have a look at my store, I have PM'd the store link to you.
Thank you for the excellent extension and also you time.