I am trying to create a social app with Firebase as my backend. Right now I am facing an issue on how(where?) to do the find friends feature.
In a conventional backend, I will upload the phone book and find emails which are there in the backend and send that list back to the device.
With firebase (Where there is no backend server), I will have loop through every email in the phone book and see, if there is an account for that email. Isn't this a very ineffient method (considering, it is a waste of the mobile resources).? Is there a better way to do this?
As firebase is supporting common Auth providers like Google, Facebook and Twitter. You can retrive the friends list from user's social login easily.
For implementation details; just follow the respective API documents below,
Google: https://developers.google.com/+/web/api/rest/latest/people/list
Facebook: https://developers.facebook.com/docs/graph-api/reference/friend-list/
Twitter: https://dev.twitter.com/rest/reference/get/friends/list
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With