U
U
uzi_no_uzi2019-01-31 22:23:27
JavaScript
uzi_no_uzi, 2019-01-31 22:23:27

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

2 answer(s)
S
Stockholm Syndrome, 2019-01-31
@StockholmSyndrome

call users.get with a parameter user_idsand with the ones you need fields, for example,
to get the information of the current user, you can not specify user_idsat all

B
bublik1337, 2019-02-03
@bublik1337

users.get

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question