C
C
cyber_user2020-09-14 17:39:06
PHP
cyber_user, 2020-09-14 17:39:06

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

2 answer(s)
A
Anton R., 2020-09-14
@anton_reut

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.

A
Anton Shamanov, 2020-09-14
@SilenceOfWinter

Or everything needs to be done individually for each social network using the API

since the presence of this button also needs to be checked somehow, see wall.search

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question