Answer the question
In order to leave comments, you need to log in
Is it possible to publish something on the VKontakte wall from the site?
Hello,
On facebook you can do this and besides, you can publish to your friends (rights - publication on my behalf and we substitute the user's access token)
And in Vkontakte? I try to do this through a standalone application - but my post is not even published ( scope=offline,wall - requested )
Another option can call vk.api('wall.post') from the site - but I think it will not work ...
Answer the question
In order to leave comments, you need to log in
In general, the order is this: we
connect the script
when it loads, we call VK.Auth.login(null, VK.access.FRIENDS);
When our handler (hung at the beginning, details in the documentation) starts, we call:
VK.Api.call('wall.post', args, callback). args is an object with parameters (owner_id, message, etc.). Do not forget that sometimes you need to enter a captcha (in this case, the corresponding error is returned in callbackck). A person is given a dialogue with your text - not an input field, but exactly like this: “publish ... To such a friend”?
On Facebook, you can publish immediately without this dialog. There is no way to bypass the dialogue on Vkontakte.
Just wall.post in my opinion passes. We wrote on the wall from the site from the user. The trick is that you don’t even need to ask for permission to wall, when you call wall.post, the contact issues an iframe with a text input form (you can pre-fill it yourself) and the “post” and “cancel” buttons
Can. Connecting via oauth as a website but using Iframe application methods. Those. really sites can do a lot.
What you definitely won't do is connect as standalone (for example, you can't write messages to friends). but on the wall you can write to ANY FRIEND
Read here. It seems like it’s impossible at all, but this is info from a year ago.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question