Issue
I know /me/friends will give list of friends who use a particular fb app
This is what I want to do:
if A, B, C are 3 facebook friends using an fb app, all three logged into the app currently, then all the 3 will be visible to each other
If A logged out of the fb app only B and C will be visible to each other
Basically I want to show list of friends currently (real-time) using my facebook app...
Please let me know if it possible and how
Thanks in advance
Solution
As the others have said, just log in your own database when a user logs into your application. Store the Facebook ID and the timestamp of their login and then you can update that timestamp any time a user completes an action or you run a script. This way the timestamp in your database remains up to date.
You can then compare this with the user's friend's timestamps. It wouldn't be exactly real time (though it would be very close), but then only show the users as online if they have been active within a certain window of time (like 30 seconds, 1 minute, 5 minutes, etc).
Answered By - Phillip
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.