Answer the question
In order to leave comments, you need to log in
Quite a simple question on the VK API. How to automate this?
Essence of the question:
I want to clean up the list of friends and leave there only those who have more than 1000 friends + subscribers (in total).
To do this, I need to add them to the list and then for my own purposes I use a third-party plugin that exists and works quite well - VK Zen.
What I need:
Find in my friends list and add those who have 1000 friends + subscribers to the "Colleagues" or "Best friends" list, it doesn't matter.
Still not a particularly necessary thing, but I would also like to know how it is done. As a result, I would like to display all this in some Excel, in order to sort everything there as I please.
PS: I have ~9700 friends and ~1200 subscribers
Answer the question
In order to leave comments, you need to log in
$all_friends = [];
$my_friends = (<a href="https://vk.com/dev/friends.get">получаем вот отсюда</a>)
$all_friends = $my_friends;
foreach($my_friends as $friend){
$friends_of_friend = (<a href="https://vk.com/dev/friends.get">получаем вот отсюда</a>, только теперь вставляем его айдишник)
$all_friends[] = $friends_of_friend;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question