Dear sirs,
How do I implement one “list of friends” in my game ?
Suppose one user have registered himself the first time on my game, and after this, he would like to add his friend as a “friend”.
The user’s friend can only provide to him your display name or email. Obviously he does not know his user_id.
But I need the user_id to call friends.add(user_id), right? (or not ?)
-
How do I get the “user_id” in this case?
-
How do I get the “user_id” starting from display name or email ?
-
Please, do you have some example showing how to manage a friend’s list, adding, deleting and retrieving friends of a logged user ?
Sorry, but I am a bit confused about the friends list’s concept.
I guess I need to show an “friend list” to the game’s users, to they be able to locate friends to invite to an match. Isn’t it?
Thank you,
Best Regards,
Marcos Tito.