VK.api("wall.post", {"message": "This post on my wall!"}, function (data1) {
VK.api("wall.post", {"message": "And the post in the group!", "owner_id": -123456}, function (data2) {
alert("You have sent 2 entries!")
});
});
Find more questions by tags JavaScriptVKontakte