3

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.

wowkin2
  • 5,895
  • 5
  • 23
  • 66
kozla13
  • 1,854
  • 3
  • 23
  • 35
  • 1
    Check this --> http://stackoverflow.com/questions/34941283/how-viber-select-the-image-to-display-from-html-page – Kostis Dec 19 '16 at 19:33
  • I made it a test with a website we have developed and the image is displayed successfully. Our meta are the following: – Kostis Dec 19 '16 at 19:45
  • @Kostis i have exactly the same meta tags, but still not working – kozla13 Dec 20 '16 at 10:43

3 Answers3

1

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

1

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.

user4i
  • 71
  • 3
  • This should be a comment, not an answer. If it is a duplicate question, [vote to close](//stackoverflow.com/help/privileges/close-questions) as such and/or leave a comment once you [earn](//meta.stackoverflow.com/q/146472) enough [reputation](//stackoverflow.com/help/whats-reputation). If not, *tailor the answer to this specific question*. – rizerphe Dec 02 '20 at 09:23
  • 1
    @БогданОпир Дякую). I have not enough reputation for vote to close or comment, so I will leave my answer, because it should help. – user4i Dec 02 '20 at 19:34
0

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