Answer the question
In order to leave comments, you need to log in
How to get VK user profile photo ID?
I used the photos.get method and the vk_api library.
Python code:
rev - photo order in anti-chronological order, i.e. new ones first. Of course, in most cases the program will give you what you need:
But I think that this may not always work: the user can upload photo A instead of photo B, and then change A back to B, to the old photo, and the program will not work correctly. How to solve this problem?
Answer the question
In order to leave comments, you need to log in
If you need to get exactly the profile photo, use https://vk.com/dev/users.get
And select what you need in the field set
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question