user3296042 user3296042 - 5 months ago 17
iOS Question

Manually killing the FB session in the app

I've been using the Facebook sdk for iOS. It's working great and I could login using this sdk. But the problem comes in when I want to logout from the system.

If I click the logout and come to home screen, iOS login feature is called again and based on previous session it logged the users back in. (I maintain my own session for the app, so using fblogin to just let users do easy registration)

I just wanna know how to manually kill the session completely so it won't login the user again once I come to login screen.

I went through their logout section but seems it's more complicated.

Can someone point me out to some resources on this.

Answer

Did you try this?

[FBSession.activeSession closeAndClearTokenInformation];