简体   繁体   English

如何在 Facebook 登录对话框中以其他用户身份登录

[英]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.

相关问题 如何在Android的Facebook登录名中获取用户所在的国家/地区? - How can I get the user's country in facebook login for android? 用户登录Facebook时如何创建活动的对话框覆盖图? - How to create dialog overlay of activity, while user login to facebook? 如何处理用户点击Facebook中的X按钮登录在Android中的DIalog - How To Handle a User Clicking the X Button in Facebook Login DIalog In Android 如何使用我的应用程序登录Facebook? - How can I login to facebook with my application? 在 Android 中使用 Dialog 登录 Facebook - Login with Facebook with Dialog in Android 如何登录Facebook并获取用户信息以从Android应用程序发送我的远程数据库 - How can I login with facebook and get user info to send my remote db from android application 如果Firebase用户首次使用Facebook或Google登录名登录,我该如何保存? - How I can save a Firebase user if he log the first time with Facebook or Google login? 我如何获得,用户登录或登录facebook sdk 4.0.1 - How i get, is user login or logout in facebook sdk 4.0.1 无法使用Android的Facebook SDK登录其他用户 - Can not login another user with Facebook sdk for Android Android Facebook登录未显示“登录成功”对话框 - Android Facebook login not showing Login success dialog
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM