Answer the question
In order to leave comments, you need to log in
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">
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question