D
D
Dmitry Pankin @Dmitry2018-12-23 21:42:52
JavaScript
Dmitry Pankin @Dmitry, 2018-12-23 21:42:52

Share buttons, customization of images depending on the content. How to implement?

We have such a service:
Phrases change quickly on the page and the user can stop it by pressing the "stop" button, a random phrase drops out from some list.
Below are buttons where he can share the result, for example, VK: "I got the phrase such and such"
Question:
How can I share the image depending on this random choice?
That is, as I see it, let's say there are 10 phrases and, accordingly, 10 pictures for these phrases
. Each phrase has its own id. When you click on the "stop" button, this id goes into the parameters of the share button and the required url of the image corresponding to this phrase is substituted.
If anyone understands, please let me know.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2018-12-23
@alekstar79

So the question is, how do you post a picture with text in VK? It's not difficult, but does it make sense to describe it here? Each social network has a well-documented api. Take a look at this - Open Graph can share the entire service page.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question