[英]How can I login as a different user in Facebook login dialog
I managed to develop an android application to read facebook updates of the user.我设法开发了一个 android 应用程序来读取用户的 facebook 更新。 I am using Facebook dialog for Authentication.
我正在使用 Facebook 对话框进行身份验证。
Once I have authenticated the user and allowed the application to access the account, the dialog quits and it is able to read the status.一旦我对用户进行了身份验证并允许应用程序访问该帐户,对话框就会退出并且能够读取状态。 Perfect.
完美的。
But I am not able to login as a different user.但我无法以其他用户身份登录。 In all the further loads of dialog, it shows nothing.
在所有进一步加载的对话框中,它什么也没显示。 Seems like, it is authenticating the same user again and disappears.
似乎,它再次对同一用户进行身份验证并消失了。
How can I bring the content of the dialog visible again?如何使对话框的内容再次可见?
Finally I found the solution, which I should have found hours before.最后我找到了解决方案,我应该在几个小时前就找到了。
Facebook has its own logout call which will clear the cache and cookie. Facebook 有自己的注销调用,它将清除缓存和 cookie。
facebook.logout(getBaseContext()); facebook.logout(getBaseContext()); did the trick.
成功了。
I know the qn was silly.我知道qn很傻。 Still, let it help someone else come up with the same doubt.
尽管如此,让它帮助其他人提出同样的疑问。 :)
:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.