Best way to find Facebook / Twitter / Google friends using the same app

I am creating an MVC C # webapi database for my mobile application that uses a Facebook / Twitter / Google account to register. Now I want to get a list of friends corresponding to a separate account that use the same application.

Well, where is my problem starting, will I have to pull out a request each time or will I have to manage the table for this purpose or is there some other best practice.

Any help / guidance will be assigned

+6
source share
2 answers

Once you create the application through the facebook application, you can use FQL to get names based on your application identifiers

Sort of

SELECT uid, name FROM user WHERE is_app_user AND uid IN (SELECT uid2 FROM friend WHERE uid1 = me ()) ";

You mainly use the facebook API to make a request to facebook that returns a JSONArray, you can parse the array to get a list of users.

Here is a very similar question Friends Facebook APIs that use the same Android application

+1
source

I am familiar with the Facebook API. Take a look at http://developers.facebook.com . First, you need to request the user access to your friends list. After that, you can request an open graph to get a list of friends. Take a look at the permissions documentation to learn how to request permissions and what permissions you need to request.

You can create a cache and save it locally. However, this data will be changed. If you create cache on your own system, make sure that it is regularly invalid and updated. I retrieve the data every time I need it and cache it for immediate use only.

0
source

All Articles