W
W
woodstock702016-08-24 12:33:08
In contact with
woodstock70, 2016-08-24 12:33:08

How to authorize the application and post VKontakte?

Hello.
By clicking on the button (vk_post), authorization in the application should occur, then the post will be reposted.
function vk_post() {
VK.Auth.login(null,'8192');
VK.Api.call('wall.post', {message:share_description, attachment: vk_share_picture+','+share_url}, hPost);
}
Authorization occurs, and the second window is blocked by the browser (because it is not called by click).
How to be so as not to click twice? The trigger to simulate the second click after closing the first window is also somehow not very good. Is it possible to call all this in one function or something like that?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Optimus, 2016-08-24
Pyan @marrk2

Access to wall.post is available only for standalone applications now, so there is no way to do what you described.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question