D
D
Dmitry2014-08-09 12:19:28
Google
Dmitry, 2014-08-09 12:19:28

How to insert the necessary data (photo, title) in the social. buttons?

There is a task:
on the page to place above each photo social. buttons, when you click on them, fumble the page in the social. networks with this photo ( example ).
Problem:
VK, Twitter, work predictably and without problems.
FB takes data only from Open Graph
Google+ collects data itself
What he did and what he came to:
Here for the test jsfiddle.net/822uR
Here you can see that FB is completely indifferent to what we put in it, it takes all the data from Open Graph
Here is an example where they could fully manage the data that is being inserted, but I don’t understand how they managed to do this ( third-party link )
Question:
How to make FB and Google+ take exactly the data that I need? As in the example from the site where they succeeded.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2014-08-15
@trec

After so many days, I still got to the bottom of the truth.
That's how they do it on adme.
When you click on the image for FB and Google, a link is formed with the GET parameter image. In which it is indicated which picture was clicked. When FB and Google click on it, the same page is shown to them, but the desired image is written in the META data.
That's all, no tricks, no secrets, just META data for each picture.
Thanks to everyone for the suggestions and ideas, without all these experiences, I might not have got to the bottom of the truth.

A
Alexander Lashchevsky, 2014-08-09
@Alexanevsky

Try removing the Open Graph image for this page. Or put the desired picture into it only at the moment when the user clicks on the share button.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question