M
M
michaelandreyev52017-06-01 11:38:54
In contact with
michaelandreyev5, 2017-06-01 11:38:54

How to display 5 random friends using friends.get (vk api)?

There is express with passport on node.js. Authorization passed, I figured out the callback, but how to bring five random friends to the main page after authorization?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dark Hole, 2017-06-01
@michaelandreyev5

Take a look at the documentation . If you can't read it already, then I will say that you can sort friends randomly (order=random) and limit the number of returned users (count=5)

Sample url
https://api.vk.com/method/friends.get?order=random&count=5&access_token=ACCESS_TOKEN&v=5.64

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question