Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question