A
A
alexeeey_kuznetsov2019-12-09 10:35:34
open graph
alexeeey_kuznetsov, 2019-12-09 10:35:34

How to properly configure Open Graph for correct display in VK?

I’ll write right away that this is not a repeat, it doesn’t work, it’s only in one place and many solutions have already been tried, it doesn’t help.
In all social networks and instant messengers, except for VK title and image are displayed normally.
On pages where images are presented as a background - the image in VK is absent in principle, but on pages where images are presented through they are taken, and not always the first for some reason, if there is a slider on the page (native js, without connecting third-party ones), then the second image is taken from the slider (for some reason). It turns out on the pages and through bg and through img og: image is not perceived in VK at all. Here is the source code - the most basic.

<html prefix="og: http://ogp.me/ns#">
<head>
<meta property="og:title" content="title">
<meta property="og:image" content="image.png">
</head>

Initially did this link:
What I tried:
- Reset the cache of the external page in VK:
- Change to other images
- Add og: type, og: url
- Add google + meta tags with itemprop (name, image)
- Add additional. attributes for img: og:image:type, og:image:secure_url
- Add rel="image_src" to head link. Helped a lot of people with similar problems. I'm past again.
I don't know what else to try.
I repeat, in all social networks works fine, in telegram through the bot I checked the cache reset when checking with a different image. Everything works except VK.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2020-01-03
Sayk @PiSaiK

Here is the most concise solution

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question