sromku / android-simple-facebook

[Deprecated] Simple Facebook SDK for Android
Other
879 stars 349 forks source link

Expired Access Token #396

Open grembek opened 8 years ago

grembek commented 8 years ago

Hi,

It appears that one of my users Access Token got expired until he logged in again, but he cannot renew it for some reason.

The onException method in my implementation of OnLoginListener is called (instead of the onLogin), mSimpleFacebook.login(new MyLoginListener()); and this is the error I get from Facebook: HttpStatus: -1, errorCode: 190, errorType: null, errorMessage: Error validating access token: Session has expired on Saturday, 28-Nov-15 23:03:16 PST. The current time is Thursday, 03-Dec-15 10:17:24 PST

For some reason the user is not redirected to perform the login flow again, how can I make him go again though the login process? Or should I clear the expired access token explicitly?

Thanks

jhkersul commented 8 years ago

Yeah, exactly same problem here. Better use default Facebook SDK