Answer the question
In order to leave comments, you need to log in
How to get user photo from dialog via VK API?
I get the list of dialogs using the messages.getDialogs method. Next, I need to get the avatar of the person whose dialogue I received. How can I do that?
I saw such a thing as users.get, and so, is it possible to somehow get information from this method through userid? Or are there other options?
At the same time, I'll ask how you can get a photo of the current user (ie, from the owner page itself)?
PS I do everything with JavaScript.
Answer the question
In order to leave comments, you need to log in
call users.get with a parameter user_ids
and with the ones you need fields
, for example,
to get the information of the current user, you can not specify user_ids
at all
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question