且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android - facebook sdk登录窗口消失

更新时间:2022-06-26 08:29:38

p> com.facebook.katana的logcat错误来自Android的Facebook应用程序。是安装在手机上吗?听起来像是这样,你是默认单点登录(SSO)?
尝试执行您的授权为

That logcat error from com.facebook.katana is from the Android Facebook app. Is that installed on the phone? It sounds like it is and you are defaulting to Single Sign On (SSO)? Try doing your authorize as

authorize(this, PERMISSIONS, FORCE_DIALOG_AUTH, new LoginDialogListener());

避免了SSO并强制对话登录。
如果这规避了你的崩溃,那么最可能的原因是SDK和已安装的Facebook应用程序之间不匹配。他们往往比较挑剔的一起工作。如果是这样,您可能需要尝试几种不同的版本,才能找到稳定的对。

which avoids SSO and forces a dialog login. If that circumvents your crash, then the most likely cause is a mismatch between the SDK and the installed Facebook app. They do tend to be quite picky about working together. If so, you'll probably have to try several different versions of each before you find a stable pair.