Answer the question
In order to leave comments, you need to log in
How to make a VK post from the application?
There is a VK application in which the user is given the opportunity to make a post on the wall.
I initialize vk.api:
Next, I hang an event on the button, in which the following code:VK.init({apiId: '*******'})
console.log('share');
VK.api("wall.post", {
"message": shareText,
"attachments": attachment,
"v":"5.87 "
});
Answer the question
In order to leave comments, you need to log in
I connected this file to the header: https://vk.com/js/api/xd_connection.js?2
and it all worked.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question