spring-attic / spring-android-samples

Spring for Android Sample Applications
http://projects.spring.io/spring-android
Apache License 2.0
758 stars 483 forks source link

Facebook connection doesn't actually disconnect #4

Closed bpeng closed 11 years ago

bpeng commented 12 years ago

After Facebook connection is disconnected, and the Connect option is shown, when the item option clicked, it automatically connect to Facebook without asking for user name and password, and to totally disconnect , we have to clear cache/data from app management.

It seems onPageStarted methed of FacebookOAuthWebViewClient class is called again and again until uriFragment is obtained. How can we disconnect totally?

ghost commented 12 years ago

Hej, I have the same problem. I made a disconnect button that forces the app to clear its cache/data but it's not a solution as it only works once for me.

Using IDEA's debugger I saw that the disconnect function in the FacebookActivity doesn't remove the connection from the connection repository. I'm also interested in a solution to this problem.

royclarkson commented 11 years ago

The Facebook session cookie was being saved in the webview. Now clearing all cookies when the activity resumes, so Facebook won't automatically reauthorize the app, forcing the user to login in again.