A strategy for effectively keeping your Facebook friends up to date (which scales)

I have created an application that will import all your friends and their data. I cache this data and use the cached data when rendering the application, so I am not forced to import from facebook with every upload.

I hope someone can give me a solid strategy for storing friends information efficiently at my end (or at least until today for 24 hours) - realtime updates just tell me if a collection of friends / object changed for the user, not for which friends or which pieces of data.

I could, of course, just re-import the data of each user friend every day, but that seems a bit overkill.

I want to be able to:

  • Check if a new friend has been added (and then import a new friend).
  • Check if any friends have been deleted.
  • Check if any friends have been updated and what information has been updated (and then get updated information).

Note. The app has thousands of users and millions of cached friends, so brute forcing won't scale well

Does anyone have any good information on an efficient way to keep the user's friend information up to date without constantly pinging the FB to re-import each friend?

Will also be interested in any third party SaaS options for this.

+3


source to share


1 answer


Recently I tried to get the actual information about the friends of the users and I found only one solution - I get the complete data of all friends every time. I am doing this client side in JS and posting the result to our server.



0


source







All Articles