Search for users, add or remove them from a friends list and message them on a friends

How do you make a search bar on appery.io where it can search for people who also have the same app and can add people who have that app to a friends list (can also remove them from that list). And can also message specific people in the friends list?
1 person has
this question
+1
Reply