T
T
trulyalya bonjur2015-10-09 13:06:44
JavaScript
trulyalya bonjur, 2015-10-09 13:06:44

Why does Vk share not catch PNG image format?

I use this code:

<script type="text/javascript" src="http://vk.com/js/api/share.js?90" charset="windows-1251"></script>

<script type="text/javascript"><!--
document.write(VK.Share.button(false,{type: "custom", text: "вконтакте"}));
--></script>

when you click the "share" button, the png image does not get into the ball, and the rest of the posts with jpg get. What's the problem, I wonder?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene Tatarinov, 2015-10-09
@darkkemper

For the correct balls in VK, in the head tag I indicate a link to a photo of a post of any extension:
<link rel="image_src" href="/img/poster.png" />

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question