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

Cannot logout and login back as a different facebook user #25

Open
pocahentez opened this issue Jan 27, 2015 · 6 comments
Open

Cannot logout and login back as a different facebook user #25

pocahentez opened this issue Jan 27, 2015 · 6 comments

Comments

@pocahentez
Copy link

I'm working on an ios cordova application on which I have to login on facebook do some thing then logout. After loggin on facebook I tried to logout and then login with another account. But it always return the first logged in user information. It seems that that the logout doesn't clear the local storage but even when I clear the storage it still doesn't display the login facebook page for the second user and it returns the first logged in user informations.

$('#logout').click(function() {

                            FacebookInAppBrowser.logout(function() {
                                              alert('bye');
                                              });

                                        });

Even the alert haven't been displayed with logout action.Do you have any idea how to resolve this problem?

@pocahentez pocahentez changed the title logout doesn't work Cannot logout and login back in as a different facebook user Jan 27, 2015
@pocahentez pocahentez changed the title Cannot logout and login back in as a different facebook user Cannot logout and login back as a different facebook user Jan 27, 2015
@caiovaccaro
Copy link
Owner

Hello!

Can you paste in pastebin your full code so I can take a look?

http://pastebin.com

Thanks!

@pocahentez
Copy link
Author

I post it here:http://pastebin.com/73nP3z6j

@caiovaccaro
Copy link
Owner

Hi there,

Try using a redirect url that is yours and not facebook's. A published domain that is yours and ideally that belongs to your application configuration inside facebook.

@caiovaccaro
Copy link
Owner

Hi @pocahentez , any updates on this?

@brunoinfocast
Copy link

Hi, @caiovaccaro. I tried the solution you suggested, but it didn't work.

@caiovaccaro
Copy link
Owner

Hi @brunoinfocast ,

Can you paste in pastebin your full code so I can take a look?

http://pastebin.com

Also, let me know what is happening in your case.

@caiovaccaro caiovaccaro reopened this Oct 23, 2017
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

3 participants