F
F
friorikuri2016-06-30 16:40:27
PHP
friorikuri, 2016-06-30 16:40:27

How to correctly make a vk api: users.getNearby request?

There is a php script that redirects the user to the authorization site in VK. Then the user with the received token is redirected to the php page.
On this page, using the token received by the user, I want to call the users.getNearby method. So the problem is that when executing such a request, I get a response with error code 15:

"Access Denied. Please make sure you are using the correct IDs and that the content for the current user is accessible in the full version of the site."

I can't figure out what is the reason. With other methods (for example users.Get) it works correctly
I would be very grateful if someone can point me to the reason

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Greg Popov, 2016-06-30
@Gregpopov

Are you requesting access for this action from the user?

A
Alexander Sisyukin, 2016-06-30
@Caarl

https://new.vk.com/dev/permissions
When you receive a token, write down what you need, probably you are making requests for the data that the user did not give permission

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question