Answer the question
In order to leave comments, you need to log in
VK api now asks for a token even in order to get a person's avatar?
I'm trying to get my own avatar like this:
https://api.vk.com/method/users.get?fields=photo_200&user_ids=199334161
{"error":{"error_code":5,"error_msg":"User authorization failed: no access_token passed.","request_params":[{"key":"oauth","value":"1"},{"key":"method","value":"users.get"},{"key":"fields","value":"photo_200"},{"key":"user_ids","value":"199334161"}]}}
Answer the question
In order to leave comments, you need to log in
https://vk.com/dev/service_token
From April 2017, a service access token is required to work with these methods (not including secure section methods):
newsfeed.search
wall.search
From May 2018, a service access token is required to work with these methods:
users.get
wall.getComments
friends.get
groups.getMembers
likes.getList
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question