Answer the question
In order to leave comments, you need to log in
How to display 2 sentences to send a post when a button is clicked?
You need to send 2 posts - one to the group, the second - to your wall. How to display 2 confirmations?
now I specify wall.post 2 times in a row and only confirmation of the latter is shown.
Answer the question
In order to leave comments, you need to log in
First, you call one request to create a record, after its execution there will be a callback. When you receive a callback, immediately send a second request.
Something like this:
VK.api("wall.post", {"message": "Этот пост мне на стену!"}, function (data1) {
VK.api("wall.post", {"message": "А этот пост в группу!", "owner_id": -123456}, function (data2) {
alert("Вы отправили 2 записи!")
});
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question