Answer the question
In order to leave comments, you need to log in
How to understand that a person has shared a post on a social network?
Hello, the task is as follows. It is necessary to write a script in php in which when a person shares in one of the social networks, a +1 counter should be added (only if he really shared and not just pressed the share and cancel button). Are there any services that can give buttons to share and track what a person has shared? Or everything needs to be done individually for each social network using the API.
Answer the question
In order to leave comments, you need to log in
Here is the documentation for the Share button for VK: https://vk.com/dev/widget_share Checking how much was shared and the counter, all this is on the side of the social network, which most likely simply adds to the database all such links that appear on the pages of users or communities .
That is, Vasya, Petya and Masha shared a link to the www.site.ru/page page, and the social network itself collects all mentions of this link in the database and can issue a mention counter.
Or everything needs to be done individually for each social network using the API
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question