Please tell me how it is possible (and is it possible) to put down hashtags in the text of the description (or to the most attached image) to Sharing Vkontakte and Facebook?

It is important that after the Sharing social networks perceive the text descriptions (or attached to the Sharing image with a set hashtag) and can highlight the hashtags in them, making links.

Thanks in advance for your help!

    1 answer 1

    VKontakte can parse hashtags in the title:

    <meta property="og:title" content="Заголовок страницы #hashtag" /> 

    Facebook does not know how to do this, but it allows you to specify the hashtag with the link parameter for sharing:

     https://www.facebook.com/sharer.php?src=sp&u=https%3A%2F%2Fya.ru&hashtag=%23hashtag 

    Block "Share" does not yet know about this parameter, but soon we will teach him.

    • I would be grateful if you would clarify who "we" are? - user207618 5:44 pm
    • In this case, I am. - Roman Paradeev
    • Plural pronoun. Assumed that you are from the team of these / one_of networks. - user207618
    • @RomanParadeev Please tell me, I understood you correctly that when creating the Sharing code, so that users of the social network can see them, it is necessary: ​​1) Add the specified code to the VKontakte button 2) Add the hashtag parameter for facebook? In this case: 1) Vkontakte will make the necessary word of the sharing title an active hashtag 2) Facebook will add a hashtag to the sharing title Not only in the technical part, but also in that the user can see the hashtags and click on them. Thanks in advance for your detailed comment, Roman! - Timofey
    • Let's take it in order. Step one is to add hashtags to the og:title element of the opengraph page markup. If you share such a page in Vkontakte, the tags get broken up and you can click on them. It is bad that in Facebook these tags will also be visible, but as simple text. - Roman Paradeev