I just wanted to say thanks, I use this for a fair few clients and its great for them to see how socially active users are but it also is useful for showing them why they should invest time in social media
Anas
It does NOT work on Chrome, not with g+ and Google at least, which, I believe, is due to the #rd party cookies being blocked.
Worked on Opera Mini.
Hishikesh
Can we get user info like screen_name from twitter
@Hishikesh No it’s not possible to gather screen name without making an OAuth dance.
Pradeep
Hello Tom,
The code works great but the browser stores cache data and the code shows that we are logged in even if we have logged out. There should be some way to clear the browser cache on page load.
[…] in February, Tom Anthony wrote a couple of great posts on how to detect if visitors were logged into a social network and then how to use Google Analytics to track this […]
[…] final tip actually comes courtesy of Tom Anthony who first wrote about this last year on his personal blog here. However, as with other things in this article the actual implementation needs to change in order […]
[…] 2) identify which visitors are logged into twitter/G+/facebook etc. – you can do this using a technique written about in much better detail that I will go into here by a friend of mine and allround top SEO bloke, Tom Anthony […]
Very interesting approach to this challenge. I have been trying to think of a way to detect whether someone is logged into a social network or other service, but wasn’t able to figure it out. Looks like you’ve solved this, at least temporarily, until they change something so that this no longer works.
I try to detect visitators from social netkworm from year but useles! Now after I read this article I will try to follow your advices and I hope to work!
Thanks for this great article!
Really nice. I setted it up and worked fine. It still works fine in Twitter em G+. With Facebook I have an error message saying the SDK version is not supported anymore! Any idea how to fix? Anyway, thank you so much!
[…] is set up is that it first detects if the visitor is logged into facebook. It does this through a hack revealed here. If you are not logged in, it removes the trailing iframe. If it doesn’t do this, a Facebook […]
95 responses to “Detect if visitors are logged into Twitter, Facebook or Google+”
Seems to work fine for me and accurately too.
CSFire is the right defense against this kind of abuse. Though NoScript does block it, browsing with Javascript disabled is unrealistic.
I just wanted to say thanks, I use this for a fair few clients and its great for them to see how socially active users are but it also is useful for showing them why they should invest time in social media
It does NOT work on Chrome, not with g+ and Google at least, which, I believe, is due to the #rd party cookies being blocked.
Worked on Opera Mini.
Can we get user info like screen_name from twitter
@Hishikesh No it’s not possible to gather screen name without making an OAuth dance.
Hello Tom,
The code works great but the browser stores cache data and the code shows that we are logged in even if we have logged out. There should be some way to clear the browser cache on page load.
+1 for this post. Thank you!
[…] can find more details and elaborations here: https://grepular.com/Abusing_HTTP_St…te_Information http://www.tomanthony.co.uk/blog/det…cial-networks/ Reply With […]
[…] can find more details and elaborations here: https://grepular.com/Abusing_HTTP_St…te_Information http://www.tomanthony.co.uk/blog/det…cial-networks/ I must say though that finding whether a user is logged in or not is very useful in Clickjacking […]
[…] ã¾ãŸã€facebookã‚„twitterãªã©ã«ãƒã‚°ã‚¤ãƒ³ã—ã¦ã„るユーザã«ã€ç‰¹åˆ¥ãªãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ã‚’表示ã•ã›ã‚‹ã“ã¨ã§ã‚·ã‚§ã‚¢ã‚’誘発ã™ã‚‹æ–¹æ³•ã‚‚å¯èƒ½ã§ã€ã“ã‚Œã¯èˆˆå‘³æ·±ã„解説ã§ã—ãŸã€‚http://www.tomanthony.co.uk/blog/detect-visitor-social-networks/ […]
[…] in February, Tom Anthony wrote a couple of great posts on how to detect if visitors were logged into a social network and then how to use Google Analytics to track this […]
This was just the bit of code I was looking for to fix a google docs glitch. Thanks!
http://www.joshualawrencechamberlain.com/autobiography.php
[…] final tip actually comes courtesy of Tom Anthony who first wrote about this last year on his personal blog here. However, as with other things in this article the actual implementation needs to change in order […]
[…] 2) identify which visitors are logged into twitter/G+/facebook etc. – you can do this using a technique written about in much better detail that I will go into here by a friend of mine and allround top SEO bloke, Tom Anthony […]
Very interesting approach to this challenge. I have been trying to think of a way to detect whether someone is logged into a social network or other service, but wasn’t able to figure it out. Looks like you’ve solved this, at least temporarily, until they change something so that this no longer works.
I try to detect visitators from social netkworm from year but useles! Now after I read this article I will try to follow your advices and I hope to work!
Thanks for this great article!
Really nice. I setted it up and worked fine. It still works fine in Twitter em G+. With Facebook I have an error message saying the SDK version is not supported anymore! Any idea how to fix? Anyway, thank you so much!
[…] is set up is that it first detects if the visitor is logged into facebook. It does this through a hack revealed here. If you are not logged in, it removes the trailing iframe. If it doesn’t do this, a Facebook […]
your twitter demo doesn’t work for me :/