cancel
Showing results for 
Search instead for 
Did you mean: 

'og:image' is not correct size image

'og:image' is not correct size image

Template File Location

product/view/opengraph/general.phtml

Existing Code

<meta property="og:image" content="<?= $block->escapeUrl($block->getImage($block->getProduct(), 'product_image')->getImageUrl()) ?>" />

Expected Result

I expected the image url that is called to be the original image size (in my case 1000px x 1000px).

Actual Result

The image called is 150px x 150px, which is too small to feed this information into Facebook/Instagram platform.

 

Can an update please be suggested to fetch the correct image size (i.e. it's original size)?

1 REPLY 1

Re: 'og:image' is not correct size image

Try to add this:

<meta property="og:image:width" content="200" />
<meta property="og:image:height" content="200" />