Answer the question
In order to leave comments, you need to log in
How to get a photo of a random user from the Vkontakte application?
Making my first IFrame application. The question arose - How to get a photo of a random Vkontakte user in JavaScript. In general, is it possible, or does the user have to install my application? If so, how can I get a photo of a random user who installed my application?
Answer the question
In order to leave comments, you need to log in
In the description of the outdated photos.getProfile method , to get the user's avatar, it is written to use the " photos.get " method with the album_id = profile parameter. The user ID can be randomly generated, as you implement it. The photos.get method is open, you can pull profile photos from any user, from the wall and saved ones (see album_id identifiers).
There is also a catalog of all VKontakte users. You can try to use it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question