Jump to content
thirty bees forum
  • 0

Facebook OG not working.


Madbits

Question

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.

image.png.2b6772fa2b989b04e96357b2ef6e91e2.png

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...