I am developing an Android application that will have an avaliable server side. And this application will have login mechanisms. I want to use google / fb / twitter account as login information as the purpose of the application is very social.
I already read about using a Google account stored on the phone as a user check ( How to use Google accounts as login ). The problem is that I do not know what to do then? As I understand it, the Account Manager will finally give me a token. Then what should I do with this? How to tell the server that the user is logged in? How can I store this token, since I realized that this token can change after cancellation after some time ...
One more thing. What should I do when a user logs into their G account for the first time? For example, I want to get his G-image and display name and save them on the server, while saving the user a few clicks? Do I send them somehow from the phone, or do I somehow get them from the server?
The same questions may arise for FB later.
Hope I asked my question correctly, as this is a slightly more general question ...
TIA.
source share