S
S
SimBioT192017-02-05 14:05:07
PHP
SimBioT19, 2017-02-05 14:05:07

Deleting comments on a community post via VK api?

I collect all the posts from the community wall, then the comments on each post, but I can’t delete the desired comment.
Now everything is happening from the server in PHP, but after the request I constantly get an error that the token is not suitable (naturally). I use the wall.deleteComment
method , where there is a note:

This method can be called with the user's access key obtained from the Standalone application via Implicit Flow . Permissions required: wall.


1)
It turns out that I need to use, for example, the JavaScript SDK to delete a comment?
2) I realized that I cannot get the access_tokenuser through the SDK, save it, and then send requests to the method from the server. It's listed here: Implict Flow
An access key obtained in this way cannot be used for requests from the server.

Then how can I delete comments without the direct participation of the user?
3) If this is the case, do I need to tie the entire application to the VK JavaScript SDK?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
entermix, 2017-02-05
@entermix

1) It turns out that I need to use, for example, the JavaScript SDK to delete a comment?

Right.
No, in fact, there is a restriction for this, so that they cannot be deleted without the knowledge of the user.
If you have a client application - yes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question