September 3, 20206 yr Whenever I share a product on facebook, the thumbnail does not display, what I've found out is that my OG links the image as webp, which by the way is disabled as can be seen in the below image. My OG in header.tpl looks as follows: <meta property="og:title" content="{$meta_title|escape:'htmlall':'UTF-8'}"/> <meta property="og:url" content="http://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}"/> <meta property="og:site_name" content="{$shop_name|escape:'htmlall':'UTF-8'}"/> <meta property="og:type" content="website"> <meta property="og:description" content="{$meta_description|escape:html:'UTF-8'}"> {if $page_name=='product'} <meta property="og:image" content="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large', 'webp', ImageManager::retinaSupport())|escape:'html':'UTF-8'}"> {else} <meta property="og:image" content="/img/og_graph.jpg" /> {/if} and if I change webp to jpg in: <meta property="og:image" content="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large', 'webp', etc, etc the whole website breaks. Thanks for your time, any suggestions?
September 3, 20206 yr Author Solution Fixed by replacing the whole thing with: $link->getImageLink($product->link_rewrite, $cover.id_image, 'large', null, ImageManager::retinaSupport())|escape:'html':'UTF-8'
Create an account or sign in to comment