M
M
mindgrow2018-03-17 15:36:45
In contact with
mindgrow, 2018-03-17 15:36:45

Vk.Api likes.isLiked - What causes error 15:Access denied: access restriction?

Good afternoon!
The program receives a list of users, and after that, in a loop, it determines whose avatars were liked and whose avatars were not.
The first time the isLiked method is called, no error occurs, but the method returns the wrong result (I laced, and the method says no)
Request

https://api.vk.com/method/likes.isLiked?access_token=XXXXX&user_id=298463317&type=photo&ownder_id=337448912&item_id=456239018&v=5.73

On the second call (to the next user), an error occurs.
Request
https://api.vk.com/method/likes.isLiked?access_token=XXXX&user_id=298463317&type=photo&ownder_id=218608349&item_id=456239038&v=5.73

Answer
"{\"error\":{\"<b>error_code\":15,\"error_msg\":\"Access denied: access restriction</b>\",\"request_params\":[{\"key\":\"oauth\",\"value\":\"1\"},{\"key\":\"method\",\"value\":\"likes.isLiked\"},{\"key\":\"user_id\",\"value\":\"298463317\"},{\"key\":\"type\",\"value\":\"photo\"},{\"key\":\"ownder_id\",\"value\":\"218608349\"},{\"key\":\"item_id\",\"value\":\"456239038\"},{\"key\":\"v\",\"value\":\"5.73\"}]}}"

When checking through the example on the page https://vk.com/dev/likes.isLiked - everything happens without problems.
Why does an Access denied error occur when checking the second user? And why is the wrong result returned when checking the first user?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VK API, 2018-03-18
@mindgrow

Request copied? You have a typo in the ownder_id parameter, an extra letter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question