How can I save the registered user state in the android SDK. According to the answer here . It is recommended to use a session. But in a new session, the facebook SDK was deleted, as shown here . So how can I continue. thanks in advance
Facebook SDK 4.x now automatically saves the registered user state.
Instead of using, sessionyou should check AccessToken.getCurrentAccessToken()for onCreate(), and if not null, skip the login.
session
AccessToken.getCurrentAccessToken()
onCreate()
, AccessToken , , . currentAccessToken .
AccessToken
currentAccessToken