Answer the question
In order to leave comments, you need to log in
Why different permissions when changing redirect_uri when getting VK token?
Hello, why are there different permissions when receiving a VKontakte token?
If you specify redirect_uri https://oauth.vk.com/blank.html
Then the permissions will be all that are needed
https://oauth.vk.com/authorize?client_id=1234567&scope=groups,wall,offline,photos&redirect_uri=https://oauth.vk.com/blank.html&display=page&v=5.74&response_type=token
https://oauth.vk.com/authorize?client_id=1234567&scope=groups,wall,offline,photos&redirect_uri=http://site.com/get-token/vk&display=page&v=5.74&response_type=token
Answer the question
In order to leave comments, you need to log in
Most likely you have an application of the "web site" type. It doesn't work there https://vk.com/dev/permissions
You probably already figured out that a server token with the right wall
can only be obtained with a redirect to https://oauth.vk.com/blank.html
. This is how VK fights spam when the user is given permission once, and then spammed on behalf of his account.
You can solve the problem in several not very pleasant ways. They all boil down to getting the full address bar after redirecting to blank.html
:
Can you describe in more detail the intended functionality? It can probably be implemented in other ways as well. For example, posting to communities can be done from your (backup) account. Have admins who want to use your app add that account to their Community Editors so they can post on the wall. And you will be able to authorize one of your accounts and pick up its token using any of the methods described above.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question