Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook Login - Cache problem #13

Open
ghost opened this issue May 20, 2016 · 11 comments
Open

Facebook Login - Cache problem #13

ghost opened this issue May 20, 2016 · 11 comments

Comments

@ghost
Copy link

ghost commented May 20, 2016

Hi,
I got a problem with "facebookConnectPlugin.getLoginStatus" method, when I make login the first time after installation, and then try to change account I cannot do it, it seems cache the login status. I tried to uninstall facebook app and messenger app but the method "GetLoginStatus" still give me the first login data.

Is this a known problem?
Thankyou,

@ghost
Copy link
Author

ghost commented May 20, 2016

Maybe I found the problem, I got that FB sdk has a trick to force the login status caching, we have just to add a second parameter to "FB.getLoginStatus" method as " true :
https://developers.facebook.com/docs/reference/javascript/FB.getLoginStatus#servers

But the plugin isn't made to receive this parameter. Could you add this functionality ? I found around the main trunk many issue regarding this problem. This could be a big improvement.

Than you so much

Enrico

@kaansoral
Copy link

Indeed this was a big problem for me around one time, I think my solution was to call .logout whenever something went wrong

Your proposed solution seems better

@ghost
Copy link
Author

ghost commented May 20, 2016

Thanks kaansoral for your response, I added the facebookConnectPlugin.logout to app logout, but I still have this problem in a case of not registred user, when the user try to login and the app provide message of "not yet registreted" it ask to register or not, in the last case I got the same problem.... :(

I should put logout() method in that case.

@EddyVerbruggen
Copy link

@link-me Unfortunately your solution is for the JS SDK which this plugin doesn't use.

On which platform(s) do you see this issue and perhaps: can you find a similar fix for it?

@ghost
Copy link
Author

ghost commented May 23, 2016

Hi @EddyVerbruggen I know, I was suggesting to expose a parameter on facebookConnectPlugin.getLoginStatus method, as FB SDK does, to keep easy the manage of cache, without trick to clear it. I run on Android and IoS, actually it seems be the only way to clear the cache of SDK through the plugin.

@ceoaliongroo
Copy link

ceoaliongroo commented May 25, 2016

+1
I am running in iOS and Android.

The Android version show the login diakog after logout is execute.

Success Callback function of Logout returns OK for Android. In iOS return null instead.

In iOS use the safari to login, the temporally solution i found id delete web data from safari.

Could be a solution implement a method to force delete cookies, what do you think?
http://stackoverflow.com/questions/9901676/facebook-logout-not-working-properly-through-the-facebook-connect-iphone-api/10955260#10955260

thanks

@ceoaliongroo
Copy link

ceoaliongroo commented May 26, 2016

@ghost
Copy link
Author

ghost commented May 30, 2016

HI @ceoaliongroo,
you should try with facebookConnectPlugin.logout(fn,fn), whenever you want clear the cache ( even if you are not logged, like we did for FB login fail).

Bye

@ceoaliongroo
Copy link

@link-me didn't work for me.

Still keep the previous session (iOS 9.x)

@EddyVerbruggen
Copy link

Plugin version 1.7.1.2 uses Facebook SDK 4, all previous versions used SDK 3. Perhaps that helps..

@PradipShrestha
Copy link

Getting same issue in the latest release. 1.7.1.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants