Answer the question
In order to leave comments, you need to log in
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
https://api.vk.com/method/likes.isLiked?access_token=XXXX&user_id=298463317&type=photo&ownder_id=218608349&item_id=456239038&v=5.73
"{\"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\"}]}}"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question