To work with vk api I chose the vksdk package (module). Here is the link to the https://www.npmjs.com/package/vksdk package
I try to create a post in a group through a request, however, nothing happens, no post in the group is created. I have registered as a Standalone app and I have created Token for the community (Implicit flow).
Can you please tell me if I use the package functionality incorrectly or have the application not registered correctly (maybe the token is not the one created)?
var VK = require("vksdk"); var vk = new VK({ 'appSecret' : 6693739, 'appId' : 'VtfrleQIkcIxFOK13IAw', 'language' : 'ru' }); vk.setToken('****'); //vk.setSecureRequests(true); vk.request('wall.post', { 'owner_id' : -111, 'friends_only' : 0, 'from_group' : 1, 'message' : 'Hello World!' }, function(foo){ console.log('Request WALL.POST: '+ foo + '\n'); })