salil
salil

Reputation: 407

Expired FB Token

I currently develop an iOS app that uses FB Connect to enable login. In the past 2 months, I have gotten at least two reports of users who are unable to login to our app. It turns out the solution was for them to go to Settings->Facebook, click on their account and relogin. I'm guessing the access token is expiring for some users.

Why is the iOS system level token not automatically refreshing when needed? Is there some way for my app to initiate this? Or at least some way to alert a user to this case so they can fix it themselves?

And why aren't more people seeing this?

Thanks!

Upvotes: 0

Views: 62

Answers (1)

Tobi
Tobi

Reputation: 31479

I guess you have to handle this in your app yourself. Have a look at https://developers.facebook.com/docs/ios/errors#auth and check the login error scenarios. There's also some sample code included.

Also, you could have a look here: https://developers.facebook.com/docs/facebook-login/ios/v2.0#sessions

Upvotes: 1

Related Questions