For some reason, I cannot find this information anywhere. I am looking to figure out how to develop and architect the integration of Facebook into the iPhone app, which also has a cloud service supporting it for my own (non-facebook) data.
In particular, suppose a user is going to allow Facebook access in my iPhone application, and I want to find "my friends on Facebook who also use this application + service."
Authentication and authorization on Facebook using the iOS SDK is simple, and it is obvious that my service should store the Facebook user ID. However, I am trying to get clarity:
- Who is looking for a friend on a Facebook server? iPhone or my service?
- Is there anything in my service cache about the relationship of friends, or is it viewed every time?
In the end, I'm trying to figure out how to get a design that will scale to millions of users and see if the client or server is working. If this is a client, the user must wait for the FB OpenGraph call, and then return to my cloud service to get the intersection of FB friends using my service (+ any other metadata that I want to show).
If this is my server, I cache information that ultimately needs to be synchronized and consistent with changes in the user's friend list. In addition, this does not really solve the problem of scale, since the iPhone application will be included in the FB for this user, send me your Facebook identifier, then my service will have to call Facebook OpenGraph server-to-server and still reconcile the friends of the FB list.
Love any advice!
source
share