This is how it is implemented in learn.javascript.ru , when you insert a link into messages, for example, or in a post on a wall:
And so on my blog:
Apparently it is somewhere in the headers html is prescribed for the site to be indexed by robots, but did not find information about this. How is this done?
|
2 answers
You need to use the OPEN GRAPH protocol as an example (for different systems)
<head> <meta property="og:type" content="profile"/> <meta property="profile:first_name" content="ΠΠΌΡ"/> <meta property="profile:last_name" content="Π€Π°ΠΌΠΈΠ»ΠΈΡ"/> <meta property="profile:username" content="ΠΠΈΠΊ"/> <meta property="og:title" content="ΠΠ°Π·Π²Π°Π½ΠΈΠ΅ ΡΡΡΠ°Π½ΠΈΡΡ"/> <meta property="og:description" content="ΠΠΏΠΈΡΠ°Π½ΠΈΠ΅"/> <meta property="og:image" content="https://website.com/image250X250.png"/> <meta property="og:url" content="http://www.site.com"/> <meta property="og:site_name" content="ΠΠ°Π·Π²Π°Π½ΠΈΠ΅ ΡΠ°ΠΉΡΠ°"/> <meta property="og:see_also" content="http://www.website.com"/> <meta property="fb:admins" content="Facebook_ID"/> <meta itemprop="name" content="ΠΠ°Π·Π²Π°Π½ΠΈΠ΅ ΡΠ°ΠΉΡΠ°"/> <meta itemprop="description" content="ΠΠΏΠΈΡΠ°Π½ΠΈΠ΅ ΡΠ°ΠΉΡΠ°"/> <meta itemprop="image" content="https://website.com/image250X250.png"/> <meta name="twitter:card" content="summary"/> <!-- Π’ΠΈΠΏ ΠΎΠΊΠ½Π° --> <meta name="twitter:site" content="ΠΠ°Π·Π²Π°Π½ΠΈΠ΅ ΡΠ°ΠΉΡΠ°"/> <meta name="twitter:title" content="ΠΠ°Π·Π²Π°Π½ΠΈΠ΅ ΡΡΡΠ°Π½ΠΈΡΡ"> <meta name="twitter:description" content="ΠΠΏΠΈΡΠ°Π½ΠΈΠ΅"/> <meta name="twitter:creator" content="Π°Π²ΡΠΎΡ"/> <meta name="twitter:image:src" content="https://website.com/image250X250.png"/> <meta name="twitter:domain" content="website.com"/> </head> |
As far as I know, such things are set through meta tags for micromarking. The image is set via itemprop="image" :
<meta itemprop="image" content="http://your-link.png"> |