Viber og:image tag

5.4k views Asked by At

I have the following URL:
http://ikre.info/vijesti/item/902-cestitka-u-povodu-dana-nezavisnosti-bih.html

and all og tags are set:

<meta property="og:image" content="http://ikre.info/media/k2/items/cache/eeca348660096e711cd17c1f61fb2519_L.jpg" />
<meta name="og:image:type" content="image/jpeg" />
<meta name="og:image:width" content="775" />
<meta name="og:image:height" content="516" />

But Viber is still ignoring the link if I share it in Viber messenger.

3

There are 3 answers

2
user4i On

Same as on https://stackoverflow.com/a/65093512/12640054

From my test, Viber successfully got first jpg/png image on page with size less than 40Kb.

Even you can hide it with display: none if it is not really shown image in browser, just for Viber preview.

1
Dmytro Kobyzskyi On

The response of an image must not be chunked.

There is no documentation. But I revealed that the server should send 200 response with Content-Lenght header

0
Bokili Production On

I think that Viber does not support the http protocol for Open Graph images. Only https.