Answer the question
In order to leave comments, you need to log in
How to repost on the VK wall from a third-party site?
Hello, can you please tell me if it is possible to repost on the wall from a third-party site, WITHOUT showing a window with the message "The application offers to post the following entry on your wall and in the news of your friends"? That is, so that the records are reposted automatically, for example, by some event. The site has implemented authorization through Oauth. Node.js server side
Answer the question
In order to leave comments, you need to log in
Actually, through the API - wall.post, in attachments we shove the link to the desired page, it will be pulled up automatically
Anyway, if anyone is interested. did so.
1) Downloaded this package here https://github.com/57uff3r/nodejs-vksdk
2) got an access_token as specified here puertolance.com/post/socialmedia-posting
3) created a view controller
createPost: function(req, res) { var m = req.param('message') return Q() .then(function() { vk.setToken('...'); vk.request('wall.post', { 'owner_id': ..., 'message': m, 'access_token': '...', 'attachment': 'http://google.com' }, function(_o) { console.log(_o); return res.send('ok!') }); }) .catch(res.serverError); }
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question