couchbaselabs / ToDoLite-iOS

To-Do list sample app for Couchbase Lite, native iOS version
85 stars 41 forks source link

Can't login with different userid after logout using facebook credentials #46

Open ashvindersingh opened 9 years ago

ashvindersingh commented 9 years ago

Steps to reproduce:

pasin commented 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.

pasin commented 9 years ago

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

hiren1995 commented 6 years ago

Any Solution for this yet...

hiren1995 commented 6 years ago

let fbLoginManager : FBSDKLoginManager = FBSDKLoginManager() fbLoginManager.loginBehavior = FBSDKLoginBehavior.web

Finally got the Solution. This for swift

i-am-chris commented 6 years ago

did not work any other ideas?

Darshzz commented 6 years ago

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)") })

AntonBelousov commented 5 years ago

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