Answer the question
In order to leave comments, you need to log in
How to access the scope wall for an application? How to write on the wall from the site?
In general, I wrote a PHP script that turns out all these tokens, and so on.
but I am confused by this entry and the API response to my requests.
At first requested the WALL rights for the user.
Then I read somewhere that you need to request FRIENDS, WALL, OFFLINE. But the result still has not changed - No rights and that's it.
There is a suspicion that I generally did this whole system wrong, because logically, the community admin is involved in writing messages, why the hell do you need to get a specific user token (which may not be registered in VK) is unclear.
Of course, VKontakte technical support, with all due respect, contains not only NOT_programmers, but even NOT_PC operators, and after 25 hours I really feel how they will help me ....
Has anyone already solved this problem? We want the user to be able to leave a post on the wall through the site on behalf of the owner of the group pre-wired into the code.
Proofs: A
slippery moment in the documentation: https://pp.vk.me/c615828/v615828935/17d99/uekIq3QP...
Server response to my requests:
https://i.gyazo.com/debd497f64e8aeb0a1a36d5a8e1c94...
Answer the question
In order to leave comments, you need to log in
There are only two ways to leave posts on the wall:
The second option is available only if the user has logged in to your site using the Open API and can only post on their own behalf.
For the first option, you can simply make a form on your website (let's say with a review about your services), which will be sent to your script by an AJAX request, and in this script, already sew your access_token. Such an access_token must be obtained on behalf of the community administrator and only through the standalone application (when creating the application, you must select this type). To get an access_token, go to the community administrator page at this link, after substituting your data for the client_id (application ID), scope (access rights) and v parameters(API version):
The access right is offline
necessary for the token to be unlimited. Then copy the token from the browser address bar and paste it into your code.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question