Answer the question
In order to leave comments, you need to log in
VK API does not return the last_seen field, how to squeal?
Good day.
I'm trying to get a list of friends with the following query:
https://api.vk.com/method/friends.get?count=5000&offset=0&fields=last_seen&access_token=${token}&v=5.103
, but the field is not returned on an account with 500 friends. Answer the question
In order to leave comments, you need to log in
Solution:
It turned out that I indicated in vk me, in privacy, that "who sees me on the network - only me", you need to put it on "who sees me on the network - all users"
The friends.get() method can be called with a service token and with a token received by the user.
With the service token, only "public" data will be returned - as if you go to their VK page in a new private browser window without logging into VK.
With a user token, the data that is visible if this user looks at the page will be visible.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question