Madbits Posted September 3, 2020 Share Posted September 3, 2020 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? Link to comment Share on other sites More sharing options...
0 Madbits Posted September 3, 2020 Author Share Posted September 3, 2020 Fixed by replacing the whole thing with: $link->getImageLink($product->link_rewrite, $cover.id_image, 'large', null, ImageManager::retinaSupport())|escape:'html':'UTF-8' 1 Link to comment Share on other sites More sharing options...
Question
Madbits
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:
and if I change webp to jpg in:
the whole website breaks.
Thanks for your time, any suggestions?
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now