Open ashvindersingh opened 9 years ago
I could reproduce this. I think this is a facebook SDK 4.0 bug when logging in / out from the browser dialog. I noticed that facebook sdk doesn't keep user info in a shared cookies but in a local browser storage and the SDK didn't clear that when calling FBSDKLoginManager.logout method.
Some developers are seeing the same behaviors:
http://stackoverflow.com/questions/30092610/facebook-logout-is-not-working-in-new-sdk-v-4-1-0-in-ios
Any Solution for this yet...
let fbLoginManager : FBSDKLoginManager = FBSDKLoginManager() fbLoginManager.loginBehavior = FBSDKLoginBehavior.web
Finally got the Solution. This for swift
did not work any other ideas?
This is because of SSO Single sign-on enabled in fb developer settings. Try this......
let deletepermission = FBSDKGraphRequest(graphPath: "me/permissions/", parameters: nil, HTTPMethod: "DELETE")
deletepermission.startWithCompletionHandler({(connection,result,error)-> Void in
println("the delete permission is (result)")
})
User can open facebook on his/her device and logout. After it hi/she would be able to login in your app with different account. It is awful UX, but it works
Steps to reproduce: