I
I
Ilkhomjon Matazimov2020-04-27 10:10:09
PHP
Ilkhomjon Matazimov, 2020-04-27 10:10:09

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.
And on the second account, where there are 10k friends, everything calmly gives out the 'last_seen' field.
How to fix it? And with what it can be connected? I use access token
in two accounts

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilhomjon Matazimov, 2020-04-27
@mr_qpdb

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"

S
Sergey Sokolov, 2020-04-27
@sergiks

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 question

Ask a Question

731 491 924 answers to any question