Jump to content

facebook share image size problem


Recommended Posts

  • 1 month later...
  • 2 weeks later...

I changed

modules\socialsharing\views\templates\hook\socialsharing_header.tpl

 

 

in that way:

 

before:

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

after

<meta property="og:image:width" content="125" />
<meta property="og:image:height" content="125" />
{if isset($link_rewrite) && isset($cover) && isset($cover.id_image)}
<meta property="og:image" content="{$link->getImageLink($link_rewrite, $cover.id_image, medium_default)}" />

anf in the page works correctly:

<meta property="og:image:width" content="125" />
<meta property="og:image:height" content="125" />
<meta property="og:image" content="http://mysite.xxx/35-medium_default/printed-summer-dress.jpg" />

But it seem to do not work properly again.

 

How can fix that?

Link to comment
Share on other sites

×
×
  • Create New...