• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Marek
  • Private: No
  • Open Date: 04.03.18, 17:09
  • Opened by: Marco Salvi
  • Closed by: Marek
  • Closed on: 06.05.18, 20:36
  • Reason: No answer from a customer

Ticket #11787 - ISSUE ON OPENGRAPH FACEBOOK CODE

Hi staff,
when i try to share on facebook for example this page :

https://www.pelletteriaferrante.com/it/378-tommy-barbados

i don’t see the featured image associated to this category or product

I have to insert this link in facebook debugger and after i can see the featured image on social.
Why ?
Is there a code issue for opengraph ?
Thanks

Comments

Marek 05 Mar 2018, 00:00

I just added a line to the header.tpl file. Please check iS it works now?

{if ($page_name == "product")}
<meta property="og:image" content="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')}" />
{/if}