O
O
Olgerd19902016-06-12 13:19:14
In contact with
Olgerd1990, 2016-06-12 13:19:14

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

3 answer(s)
A
Alexander, 2016-06-12
@aspetek

Actually, through the API - wall.post, in attachments we shove the link to the desired page, it will be pulled up automatically

O
Olgerd1990, 2016-06-12
@Olgerd1990

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);
  }

I
Ilya, 2016-06-12
@FireGM

On the site, without a confirmation window, nothing.
Also, sites will post whatever they want on the wall if I just logged in.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question