W
W
WebFenix2016-01-24 15:09:26
JavaScript
WebFenix, 2016-01-24 15:09:26

VK gives an error when trying to join a group through the API, what's the problem?

The error is Access denied: no access to call this method
Application STANDALONE. The client oauth is used and strictly according to the VK documentation. The token was received, but when sending a request to join, everything is bad.
The URL that the user follows and gives us access or a token. __htt_ps://oauth.vk.com/authorize?client_id=$id&display=page&redirect_uri=http:/_/lend.sloadmx.xx&scope=friends,groups,video&response_type=token&v=5.44
Script that sends a request and receives a response - pastebin. com/659r2jPw
Most likely, if you use the Standalone application, you can also OPEN API. The whole thing really annoys me there, where you can turn it on in the settings and a list with REDIRECT URL will appear and so on.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WebFenix, 2016-01-28
​​@WebFenix

In general, I wrote in support of VK. At first they answered for a long time, but in the end they said that such methods could not be used on sites. That is, methods that require Standalone will not work. For example groups.join I
see three options:
1. Make a desktop application
2. Try to bypass. I tried, no success. (for example, steal a URL with a token)
3. Zabit on VK
By the way, there is a question, why didn’t it work?
1. It is necessary to specify the default URL in the REDIRECT URL. oauth.vk.com/blank.htmk
2. For these methods, it is recommended to use client authorization
3. To send membership requests and so on, you must do it through the user's IP. Otherwise, an error will pop up. That is, left IPs are not allowed. Use either browser JS / ...
4. Mandatory STANDALONE application must be
Not mandatory, but still - in the settings there is an OPEN API and various parameters. It is recommended to fill them out if you are going to do not only desktop methods.
I will be glad if someone wants to try to advise in the comments how to get around this matter. as I want - they said that in no way. Most likely it is impossible, but suddenly ....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question