I’m implementing a simple Facebook “Like” button on a voting site but want an option which votes using the internal “Like” system for anyone who doesn’t have a Facebook account/doesn’t want to log in (this may seem like an odd request but this is a requirement for the client).
So basically I’d like a way of detecting if someone is logged in without having to use the graph API – just using Open Graph Protocol. Is there any way of doing this?
If you subscribe to
auth.statusChangeevent, it might do the trick, as noted on this page:Returned
statuswould contain eitherconnected,notConnected(logged in to facebook but not to your app) orunknown.I am not sure if this would work as planned though as I haven’t tried it myself. It might return
notConnectedstatus only for users that authorized your app in the past, but it seems like a step in the right direction.