I'm developing an app for android, that will have an api-like server side. And this app will have users login mechanisms. I want to use a google/fb/twitter account as login information, as the purpose of the app is very socially-spoted.
I have already read about using the Google Account stored in the phone as user verification ( Howto use Google Accounts as login ). Problem is that I don't know what to do then? As I understood, the Account Manager, will finally give me a token. Then what do I do with it? How do I inform the server side that the user did login? How do I store this token, as I understood that this token might change when invalidated after some time...
And another thing. What do I do when user enters his G account for 1st time? I want to get his G avatar and display name, for example and store them on the server,thus saving the user a bunch of clicks? Do I send them somehow from the phone or I get them somehow from the server?
This same questions might arise for FB later, too.
Hope I did ask my question correctly, as this is a little more general question...
TIA.