facebook api: do i need to store each user's friends list in order to create a who's online component (between friends)? -
This is a general question about the creation of a Facebook application.
I want the user to have the who is online
component which shows who among his friends is currently using the application.
Does this mean that I really need to store each user's friend list in my database and filter that user currently using my application?
It seems like a lot of things.
It also means that whenever I use my application, I should bring and store my friends
Is there any other way?
As you see, I did not explain what programming language I use, because I think it is irrelevant to the question.
Thank you!
No need to store a friend ID as you can get this information from Facebook ( Just run the FQL on the table) Just store the user id that is currently logged in (possibly the last_seen
timestamp on the user table, then users are searching for the last 15 minutes Together with the app)
Something like this:
- Every time a user updates the app with the user's
previous_sync
timestamp - Then retrieve the friend ID on the user login and submit them in one session if you do not want to retrieve this list, then each pageview (the maximum entry in the Friends list will not change during the session) < Li> currently active if needed Find Friend ID among other users
Comments
Post a Comment