Post by harlequeen » Sun Oct 09, 2016 11:30 pm

Hi
I'm a complete novice so need step by step help I think.

I'm trying to get my shop to show images when i post to facebook. I have downloaded this and followed the instructions, and now I get a link to the product, but still no img.

I have used the sharing debugger and it shows the following:
The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.

I don't know where or how I should be correcting this. Can anyone help me please.

Thanks

Paula

Newbie

Posts

Joined
Sat Aug 27, 2016 10:23 pm

Post by IP_CAM » Mon Oct 10, 2016 5:27 am

harlequeen wrote:I'm a complete novice so need step by step help I think.
Well, beeing a Newbie, in a commercial Project like OC , it not quite an excuse, and/or reason,
to be teached, step by step, because this Place is not really a free school here, where one get's
lessons on, how to implement Extensions. Especially, if one presents no FACTS, whatsoever,
neither on the OC Version used, nor on the Extension used.

Sorry for the bad News, but you plan to generate money, I assume, by Use of OC, therefore,
just accept the fact, that you have to learn, and assist, with FACTS, as good as you can,
to eventually receive some usefull replies on such demands.

Nothing personal, just plain information! ;)
Ernie

Ernie's OpenShop 1.75 with responsive Bootstrap Themes:
http://www.bigmax.ch - http://www.hitline.info - http://www.openshop.li
Image


User avatar
Newbie

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by harlequeen » Sat Oct 15, 2016 2:38 am

That's fair enough, I'm happy to give some facts about what I'm using and what I'm trying to do.

I am using OC 1.5.6.4 and I have used SEO Facebook Open Graph Tags and uploaded the .xml to the xml folder in the vqmod folder. When I try to post links with images to facebook I don't get an image, although I do get the description of the item. I have run the link through the sharing debugger and I get nothing being fed back in the og:image section. I get the message 'The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags' I don't know where this should go or if I'm expected to add it to my templates.

Can anyone help me please.

Newbie

Posts

Joined
Sat Aug 27, 2016 10:23 pm

Post by IP_CAM » Sat Oct 15, 2016 8:15 am

I really don't know, never played with this, but I assume, this OG_whatever has to be placed
in the two header files, as shown below, to make it work. It should/could be part of your extension,
but possibly does not work. In russian OC Shop Versions, it partly installed by default, just to mention it.
-----------
/template/common/header.tpl
-----------

Code: Select all

<?php if ($keywords) { ?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php } ?>
<meta property="og:title" content="<?php echo $title; ?>" />
<meta property="og:type" content="website" />
<meta property="og:url" content="<?php echo $og_url; ?>" />
<?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; ?>" />
<?php if ($icon) { ?>
<link href="<?php echo $icon; ?>" rel="icon" />
<?php } ?>
------------------------------------
/controller/common/header.php
------------------------------------

Code: Select all

$this->data['name'] = $this->config->get('config_name');
if ($this->config->get('config_logo') && file_exists(DIR_IMAGE . $this->config->get('config_logo'))) {
$this->data['logo'] = $server . $this->config->get('config_logo');
} else {
$this->data['logo'] = '';
}
$this->data['og_url'] = (isset($this->request->server['HTTPS']) ? HTTPS_SERVER : HTTP_SERVER) . $this->request->server['REQUEST_URI'];
$this->data['og_image'] = $this->document->getOgImage();
Good Luck!
Ernie

Ernie's OpenShop 1.75 with responsive Bootstrap Themes:
http://www.bigmax.ch - http://www.hitline.info - http://www.openshop.li
Image


User avatar
Newbie

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Natashawilliams » Fri Nov 18, 2016 4:34 pm

Hey guys! thank you so much for starting this topic and offcourse for giving awesome solution. Here I solved my problem in coding. Just feeling blessed to find myself here.

Transactional SMS Gateway
Bulk SMS gateway
SMS Gateway API



Posts

Joined
Tue Mar 01, 2016 2:44 pm


Post by IP_CAM » Tue Jun 20, 2017 7:56 am

Solution for v.1.5.6.x Versions can be found here:
viewtopic.php?f=20&t=185144&p=677458#p677458

Ernie's OpenShop 1.75 with responsive Bootstrap Themes:
http://www.bigmax.ch - http://www.hitline.info - http://www.openshop.li
Image


User avatar
Newbie

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 13 guests