Answer the question
In order to leave comments, you need to log in
How to do sharing VK?
Problem with simultaneous sharing and user authorization:
VK.init({apiId: ******});
VK.Auth.login(function(loginInfo){
if (!loginInfo || !loginInfo['session']) {
return false;
}
VK.Api.call('wall.post', {
message: document.title,
attachments: window.location.href
}, function(postInfo) {
if(postInfo['error'] == undefined){
alert('Ура!');
} else {
alert('Не удалось сохранить информацию о посте.');
}
});
});
});
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