I’m using facebook login for my android app, now to create a user in MYSQL database I want to know when the user first logs in the app..
Something like, when we authorize the app to use facebook basic info.
Thanks 🙂
Edit: I’m using a Facebook login button (<com.facebook.widget.LoginButton... />) for login & I’m fetching the user details when the statechanges, using
onSessionStateChange(SessionState state, Exception exception){...}
You need to store whether or not the app has been run before in something called “Shared Preferences“. You can use something like the following