Facebook – Can you detect whether a browser is “logged into” Facebook, Google+ or Twitter? (I.e., they could use an existing FB login if your site offered it

facebookregistration

I'm considering implementing "Login with Facebook" (or Twitter or Google+) but I'd like to see what percentage of our users even have any of those.

(Our users tend to be fairly old and non technical and I suspect most don't have FB accounts.)

Best Answer

It is possible to know programmatically if you are logged into social web sites.

Check the header (and then the HTML source) of this WSJ microsite to see what other user details besides your current login status on social web sites can be tracked (I found it creepy so I now use a Google Mobilizer Bookmarklet when I visit domains that are not on my whitelist).

I haven't tried it but there is a ready-made JavaScript library, SocialHistory.js, to make this detection easier.