S
S
supermuxa2016-09-02 09:25:51
Classmates
supermuxa, 2016-09-02 09:25:51

What to use Unity3d OKSDK users.getInvitableFriends or friends.get-friend.getAppUsers?

I use the classmates SDK for Unity. How to correctly request a list of friends in order to invite them later in the application: in the example with the SDK, this is done through two methods: first, all friends.get friends are requested, then friends who already have friend.getAppUsers in the application are removed from this list. And in the API documentation there is a users.getInvitableFriends method that seems to do the same thing. As a result, it is not very clear how correctly, and the first method produces a larger list.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vjacheslav Kanivetc, 2016-09-05
@supermuxa

getInvitableFriends filters friends more widely (including by privacy conditions, permissions), and not only by those who are already playing. But for some reason this method is closed by default and access to it must be requested via [email protected] . Probably after some time it will be opened completely, but for now - individually issued.
Therefore, we use the variant from the example by default, but you can request an alternative variant.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question