I
I
Ivan2015-08-29 10:23:54
JavaScript
Ivan, 2015-08-29 10:23:54

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

2 answer(s)
V
Vitaly Kozhevnikov, 2015-08-29
@iwqn

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).

A
ar4ebaldello, 2015-08-29
@ar4ebaldello

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 question

Ask a Question

731 491 924 answers to any question