N
N
newaitix2018-09-08 10:58:18
JavaScript
newaitix, 2018-09-08 10:58:18

How to post a message on the user's wall in VK?

I do this and nothing happens. The Network tab in the console is empty, nothing is output to the console.

VK.init({
    apiId:00000000
});
VK.Auth.login(function(ev){
    console.log(ev);
});
VK.Api.call('wall.post', {
    friends_only:0, 
    signed:1, 
    from_group:0,
    message:'text'
}, function(ev){
    console.log(ev);
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sasha, 2018-10-22
@aryutin

VK.Auth.login(function(ev){
    console.log(ev);
}, 8192);

In addition to the callback, the second argument requires a rights bitmask. For example, if you need access only to the wall, use 8192. Read here
And here is a list of all rights.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question