K
K
Konstantin2014-02-12 04:50:13
In contact with
Konstantin, 2014-02-12 04:50:13

How to get the ID of a shared Vkontakte post after the sharing window appears on your site?

Greetings!
For several hours I have been trying to figure out how to get an analogue of Facebook in this social network:

FB.ui({ method: 'feed'}, function(response) {
  if (response && response.post_id) {
    model.set('pageId', response.post_id);
  }
});

There is a Share widget and a script for the Share button, which can make buttons in different ways, but neither of them have the functionality to return the ID of the shared post. The widget stupidly returns the counter of sharings, and the script for the Share button does not return anything at all.
The initial task is this: get the ID of the shared post on the Vkontakte wall and save it on the server in order to later check if it exists on Vkontakte and what its content is (therefore, the user must first be authorized on the site, and then show the sharing window).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin, 2014-02-12
@evil_random

If we consider that registering the application as Standalone, writing your own pop-up sharing, and sending it all to wall.post is the solution, then I solved the problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question