Skip to content
View in the app

A better way to browse. Learn more.

thirty bees forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Facebook OG not working.

Featured Replies

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?

Solved by Madbits

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.