M
M
mapleart2017-08-13 09:24:13
Facebook
mapleart, 2017-08-13 09:24:13

How to share on social networks on a multilingual site?

Hello! Recently, one site has been tormenting me a lot, or rather, how to implement share. The site has several languages.
For example, I want to share the post link on the wall https://site.ru/wall?wall_id=10.
I need to get information from the wall (picture, text, title) to the social network (facebook). If I write head meta

<meta property="og:url"           content="https://site.ru/wall?wall_id=10" />
  <meta property="og:type"          content="website" />
  <meta property="og:title"         content="Запись на стене пользователя Алексей" />
  <meta property="og:description"   content="Какой то текст" />
  <meta property="og:image"         content="http://www.site.com/path/image.jpg" />

In this case, the translation does not work. Gives the default language
_____________________________________________________________________________
If sharing via a link with setting parameters:
https://www.facebook.com/sharer/sharer.php
Then it pulls the title and description from the head, no matter what data I passed
. Has anyone had such a situation? Who got out of it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mapleart, 2017-08-13
@mappleart

So far I have thought of only passing the parameter with the language in the url

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question