Reputation: 5418
I am using Graph Api for Facebook authetication, I use following method for loging in.
[FBSession openActiveSessionWithPermissions:permissions
allowLoginUI:YES
completionHandler:
^(FBSession *session,
FBSessionState state, NSError *error) {}];
This causes the log in page to be opened in mobile safari.I use [FBSession.activeSession closeAndClearTokenInformation];
for loging out. My problem is i cant login back as a different user because the logout process doen't clear session in safari.
Same problem exists in the sample app provided in developer.facebook.com http://cloud.github.com/downloads/facebook/facebook-ios-sdk/FacebookSDK-3.0.8.pkg
Upvotes: 7
Views: 3254
Reputation: 721
Facebook app on iphone is usually meant for a single person , but when you test as developer you try to log in with different userid . Thats where the problem comes, before loggin into app u should first loggin fb app with the desired user id. It happens because fb api dnt let apps to make facebook app to signout. Every time user loggout from an app will make it fb signout also and that will be very annoying for the user.
Upvotes: 6