A
A
Andrey Fedorov2016-01-31 14:21:03
Facebook
Andrey Fedorov, 2016-01-31 14:21:03

How to make the sharing of an article from a site to fb and tw go along with a graphic image?

For sharing articles from the site on the social network, buttons from Yandex are installed https://tech.yandex.ru/share/
Meta tags are written in the code:

<meta property="og:type" content="article">
<meta property="og:title" content="Заголовок">
<meta property="og:description" content="Описание">
<meta property="og:image" content="http://site.com/img/image.jpg">
<meta property="og:url" content="http://site.com/article.html">

In vk rummages perfectly! I pressed the button and everything. And in fb and tw, only text is rummaged - the og: image tag seems to be ignored.
Please help me fix it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wol_fi, 2016-01-31
@aliencash

First, check your tags here - https://developers.facebook.com/tools/debug/og/object/
Secondly, Facebook has recommendations on image sizes and a description of their caching policy https://developers.facebook.com/docs /sharing/best-...
Finally, twitter has its own meta tags:

<meta name="twitter:title" content="" />
<meta name="twitter:description" content="" />
<meta name="twitter:image" content="" />
<meta name="twitter:image:src" content="" />

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question