I have a facebook iframe application.
I am doing my requests to facebook on server side using the graph api.
I have offline access so the access_token never expires.
I would like to know if the current user is logged into facebook so when he logs out of facebook i can log him out of my application.
I do not want to use the javascript sdk.
I have tried using the online_presence field of the user table but that always returns null.
Is there any way i can do this?
Is there a better way about it?
You need another permission, user_online_presence.
Taken from the permissions list in the Facebook dev pages:
http://developers.facebook.com/docs/authentication/permissions/