Detect if visitors are logged into Twitter, Facebook or Google+

|

95 responses to “Detect if visitors are logged into Twitter, Facebook or Google+”

  1. Tom, you really over did it here, thanks for this update, going to add this in my meme website. thanks once more.

  2. I am a beginner at this, but is it possible to indentify the accounts who are logged in? it is possible to know if somone is logged in in a social media site, but is it possible to know the name/adress of that account? If that is possible than clearing cookies is useless because they will track you anyway everytime you are logged in.

  3. very cool!

    is there a way to detect Pinterest login status?

  4. Love it!
    Is it possible to detect their username or avatar?

  5. This is smart but rather bordering on the privacy issues.
    Anyone got any ideas to put it to good use ?

  6. your twitter demo doesn’t work anymore for me either :/

  7. Hi Tom

    The Twitter demo doesn’t seem to be working anymore. Do you have any ideas on how to fix this?

  8. Hi Tom,

    is there a way to check whether the user is logged in a social network and if yes, show their profile picture and name somewehere on the website?

    Thanks, Roman

  9. The proof of concept failed to recognize that I was currently logged in to Twitter.

  10. Nice solution to a dilemma we have had for some time now. It’s all nice to send your user to a G+ service but it get’s very nice when you can add logic according to their login/off status. Thanks!

  11. very good

  12. Hello, would you like to post this on GitHub, I would like to help maintain and add some improvements.

  13. I would like to help maintain in github

    1. Nice post. Is there anyway we can get the username for each as well. For e.g. if a user is logged on to gmail, fb or twitter then display the associated username or email related to the account?

  14. […] I have an app that allows facebook and twitter logins. For facebook, there’s a javascript API that can tell me, on page load, if a user is both logged into facebook and connected to my app. This is useful in case their session has expired, so I can easily log them in again. However, with twitter, I haven’t been able to find anything like this. There’s a very hacky way of detecting if the user has logged in (taken from here): […]

  15. Excelente 😀 Too powerfull in evil hands xD

  16. […] via Detect if visitors are logged into Twitter, Facebook or Google+. […]

  17. how can detect name and family
    please help me i need that code

  18. […] javascript template that works for all 3 networks. If you want to get straight to the code jump to the implementation section or check out the Social Network Login Status Detector […]

  19. Hi, Does the twitter method still work? I can’t get anything from it ATM and wondered if twitter have broken this method?