When i try to use share on facebook the image is broken

Facebook debugging point to:
The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.
Any ideas how can i fix it?
I am on 1.5..6.4
Thank you
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Code: Select all
<meta name="keywords" content="<?php echo $keywords; ?>">
<?php } ?>
ADD FROM HERE:
<meta property="og:title" content="<?php echo $title; ?>" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://www.YOURSHOP.NAME/SHOPSUB/" />
<?php if ($og_image) { ?>
<meta property="og:image" content="<?php echo $og_image; ?>" />
<?php } else { ?>
<meta property="og:image" content="<?php echo $logo; ?>" />
<?php } ?>
<meta property="og:site_name" content="<?php echo $name; ?>" />
TO HERE !
<?php if ($icon) { ?>
Code: Select all
$this->data['logo'] = '';
}
ADD FROM HERE:
$this->data['og_url'] = (isset($this->request->server['HTTPS']) ? HTTPS_SERVER : HTTP_SERVER) . ltrim ($this->request->server['REQUEST_URI'],'/');
$this->data['og_image'] = $this->document->getOgImage();
TO HERE!
$this->language->load('common/header');
Code: Select all
public function getTitle() {
return $this->title;
}
ADD FROM HERE:
public function setOgImage($image) {
$this->og_image = $image;
}
public function getOgImage() {
return $this->og_image;
}
TO HERE!
public function setDescription($description) {
$this->description = $description;
Code: Select all
<meta property="og:title" content="the fastest Opencart in the North, South, East & West" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://www.bigmax.ch/shop/" />
<meta property="og:image" content="http://www.bigmax.ch/shop/image/data/logo2.png" />
<meta property="og:site_name" content="Ernie's OpenCart light" />
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Users browsing this forum: Baidu [Spider], Semrush [Bot] and 22 guests