How to find all active gmail and facebook account sessions?

After some research, I learned how to manually check all active gmail and facebook sessions. Are there any APIs to get information about these accounts?

+4
source share
2 answers

I do not know any APIs, but this does not mean that you cannot get the same functionality as on sites. However, without an API, your code is prone to potential breakdowns whenever Facebook or Google updates their web applications.

Facebook

For facebook, you can clear the URL https://www.facebook.com/settings?tab=security§ion=sessions&t . Also explore the URL https://www.facebook.com/ajax/settings/security/sessions/stop.php?__a=1 , which is the URL that is available in the background when you click on the "End Activity" link.

GMail

Google seems a little more complicated, but if you are scripting https://mail.google.com/mail/h/ (plain-html interface), find and follow the Details link below, you can automatically register sessions too.

+1
source

I found another article on Google that made this easy. logging out of google and redirecting As for Facebook, they have fb API which you can get in JavaScript and php. They will allow you to manage your current user account. There are logout functions for the user. However, digging into your account is difficult, because your domain cannot see the data for this user without being authorized by both Facebook and the user. Get around here if you want to deal with data and access to Facebook. https://developers.facebook.com/ The open schedule is pretty easy to use.

-1
source

All Articles