lufutu
lufutu

Reputation: 33

How to check user is using my application facebook

I want check how to know user is using my application facebook
Example: One user go to application page, i set user online, when user close application page, i set user offline
Thanks.

Upvotes: 0

Views: 208

Answers (1)

Sergio Tulentsev
Sergio Tulentsev

Reputation: 230461

If you haven't heard from a user for some time, chances are that he closed a page with your app.

Memorize last time a user did anything in your app, and set a timeout. If N minutes later there are no new actions, you mark him offline.

Upvotes: 1

Related Questions