I undersatand how to login at first time… but how to login automatically with access token??
not
FB.LogInWithReadPermissions()
but
FB.LogInWithAccessToken()
something like this.
I cant call loginwithpermission and open the facebook app or web page for logging in every time when i lunch the app.
need something to login automatically after first login.
but how…??
It should work as you mention without doing anything else. Consider that inside the Editor it will ALWAYS ask you for login, but once you deploy to the mobile device it should store the credentials. You don’t need to do anything except for calling FB. LogInWithReadPermissions() on start.
What I’m doing is saving the userId on PlayerPrefs after the first login and then I just read that pref to see if it’s empty. If it is not empty, then the user already logged in and I just call FB.LogInWithReadPermissions().