McG*_*ile 22 android facebook-login parse-platform
Note: I have since edited this question's summary as I believe the focus must shift from Android APIs to Facebook itself.
Ever since my devices updated to Facebook v42, or since Facebook updated it's Graph API to v2.4 (7th August), my app has failed to login. My Samsung S6 (API 22) failed initially, and 3 days later when my HTC (API 21) updated the Facebook app it too failed to login when it had been successful until then.
Initial Steps Taken:
更新1:
ParseException取自评论:"用户以不同的Facebook用户身份登录."
如果我使用我的 Facebook凭据登录,该应用程序不会出错.由于我不是注册测试用户,因此应在Parse数据库中创建用户并继续使用MainActivity.相反,LoginActivity仍然存在,我的数据不会添加到数据库中.
更新2:
我的HTC运行5.0今天刚刚更新了Facebook应用程序,现在出现了相同的错误Toast("Facebook登录失败").我禁用并卸载了应用程序,但Toast仍然出现.
更新3:
我更新了Parse SDK,并更改了我的依赖项以反映最新的Facebook SDK(4.5.0).仍然发生相同的错误.
更新4:
该应用程序在没有本机Facebook应用程序的任何模拟器上成功登录.
ParseLoginFragment - 实现吐司的地方
private LogInCallback facebookLoginCallbackV4 = new LogInCallback() {
@Override
public void done(ParseUser user, ParseException e) {
if (isActivityDestroyed()) {
return;
}
if (user == null) {
loadingFinish();
if (e != null) {
showToast(R.string.com_parse_ui_facebook_login_failed_toast);
debugLog(getString(R.string.com_parse_ui_login_warning_facebook_login_failed) +
e.toString());
}
} else if (user.isNew()) {
// rest of code
Run Code Online (Sandbox Code Playgroud)
禁用原生Facebook App的LogCat:
08-14 22:50:28.151 30719-30719/com.guile.occ I/InjectionManager? Inside getClassLibPath + mLibMap{0=, 1=}
08-14 22:50:28.151 30719-30719/com.guile.occ I/InjectionManager? Inside getClassLibPath caller
08-14 22:50:28.191 30719-30739/com.guile.occ I/System.out? (HTTPLog)-Static: isSBSettingEnabled false
08-14 22:50:28.191 30719-30739/com.guile.occ I/System.out? (HTTPLog)-Static: isShipBuild true
08-14 22:50:28.191 30719-30739/com.guile.occ I/System.out? (HTTPLog)-Thread-32296-266222247: SmartBonding Enabling is false, SHIP_BUILD is true, log to file is false, DBG is false
08-14 22:50:28.191 30719-30739/com.guile.occ I/System.out? (HTTPLog)-Thread-32296-266222247: SMARTBONDING_FEATURE_ENABLED is true
08-14 22:50:28.191 30719-30739/com.guile.occ I/System.out? (HTTPLog)-Static: isSBSettingEnabled false
08-14 22:50:28.211 30719-30719/com.guile.occ D/InjectionManager? InjectionManager
08-14 22:50:28.211 30719-30719/com.guile.occ D/InjectionManager? fillFeatureStoreMap com.guile.occ
08-14 22:50:28.211 30719-30719/com.guile.occ I/InjectionManager? Constructor com.guile.occ, Feature store :{}
08-14 22:50:28.211 30719-30719/com.guile.occ I/InjectionManager? featureStore :{}
08-14 22:50:28.211 30719-30719/com.guile.occ D/SecWifiDisplayUtil? Metadata value : SecSettings2
08-14 22:50:28.211 30719-30719/com.guile.occ I/Timeline? Timeline: Activity_launch_request id:com.guile.occ time:88929116
08-14 22:50:28.221 30719-30719/com.guile.occ D/Activity? performCreate Call Injection manager
08-14 22:50:28.221 30719-30719/com.guile.occ I/InjectionManager? dispatchOnViewCreated > Target : com.guile.occ.LoginActivity isFragment :false
08-14 22:50:28.231 30719-30719/com.guile.occ D/Activity? performCreate Call Injection manager
08-14 22:50:28.241 30719-30719/com.guile.occ D/PhoneWindow? *FMB* installDecor mIsFloating : false
08-14 22:50:28.241 30719-30719/com.guile.occ D/PhoneWindow? *FMB* installDecor flags : -2139029248
08-14 22:50:28.271 30719-30719/com.guile.occ I/InjectionManager? dispatchOnViewCreated > Target : com.parse.ui.ParseLoginActivity isFragment :false
08-14 22:50:28.271 30719-30719/com.guile.occ D/SecWifiDisplayUtil? Metadata value : SecSettings2
08-14 22:50:28.281 30719-30754/com.guile.occ D/OpenGLRenderer? Use EGL_SWAP_BEHAVIOR_PRESERVED: true
08-14 22:50:28.281 30719-30719/com.guile.occ D/PhoneWindow? *FMB* isFloatingMenuEnabled mFloatingMenuBtn : null
08-14 22:50:28.281 30719-30719/com.guile.occ D/PhoneWindow? *FMB* isFloatingMenuEnabled return false
08-14 22:50:28.291 30719-30719/com.guile.occ D/SRIB_DCS? log_dcs ThreadedRenderer::initialize entered!
08-14 22:50:28.311 30719-30754/com.guile.occ D/libEGL? loaded /vendor/lib64/egl/libGLES_mali.so
08-14 22:50:28.331 30719-30754/com.guile.occ I/OpenGLRenderer? Initialized EGL, version 1.4
08-14 22:50:28.331 30719-30754/com.guile.occ I/OpenGLRenderer? HWUI protection enabled for context , &this =0x7f7d8d6b20 ,&mEglDisplay = 1 , &mEglConfig = 2107568816
08-14 22:50:28.331 30719-30754/com.guile.occ D/OpenGLRenderer? Get maximum texture size. GL_MAX_TEXTURE_SIZE is 8192
08-14 22:50:28.331 30719-30754/com.guile.occ D/OpenGLRenderer? Enabling debug mode 0
08-14 22:50:28.331 30719-30754/com.guile.occ D/mali_winsys? new_window_surface returns 0x3000, [1440x2560]-format:1
08-14 22:50:28.451 30719-30719/com.guile.occ I/Timeline? Timeline: Activity_idle id: android.os.BinderProxy@38cba1f0 time:88929356
08-14 22:50:28.451 30719-30719/com.guile.occ I/Timeline? Timeline: Activity_idle id: android.os.BinderProxy@2e8ef184 time:88929358
08-14 22:50:29.061 30719-30739/com.guile.occ I/System.out? KnoxVpnUidStorageknoxVpnSupported API value returned is false
08-14 22:50:37.661 30719-30719/com.guile.occ D/ViewRootImpl? ViewPostImeInputStage ACTION_DOWN
08-14 22:50:37.731 30719-30855/com.guile.occ E/ActivityThread? Failed to find provider info for com.facebook.katana.provider.AttributionIdProvider
08-14 22:50:37.731 30719-30719/com.guile.occ I/Timeline? Timeline: Activity_launch_request id:com.guile.occ time:88938639
08-14 22:50:37.771 30719-30719/com.guile.occ D/PhoneWindow? *FMB* installDecor mIsFloating : false
08-14 22:50:37.771 30719-30719/com.guile.occ D/PhoneWindow? *FMB* installDecor flags : 8454400
08-14 22:50:37.771 30719-30719/com.guile.occ D/Activity? performCreate Call Injection manager
08-14 22:50:37.771 30719-30719/com.guile.occ I/InjectionManager? dispatchOnViewCreated > Target : com.facebook.FacebookActivity isFragment :false
08-14 22:50:37.771 30719-30719/com.guile.occ E/ActivityThread? Failed to find provider info for com.facebook.katana.provider.PlatformProvider
08-14 22:50:37.771 30719-30719/com.guile.occ E/ActivityThread? Failed to find provider info for com.facebook.wakizashi.provider.PlatformProvider
08-14 22:50:37.801 30719-30719/com.guile.occ I/WebViewFactory? Loading com.google.android.webview version 44.0.2403.90 (code 240309050)
08-14 22:50:37.801 30719-30719/com.guile.occ I/InjectionManager? Inside getClassLibPath caller
08-14 22:50:37.801 30719-30719/com.guile.occ I/LibraryLoader? Time to load native libraries: 0 ms (timestamps 8709-8709)
08-14 22:50:37.801 30719-30719/com.guile.occ I/LibraryLoader? Expected native library version number "",actual native library version number ""
08-14 22:50:37.811 30719-30719/com.guile.occ V/WebViewChromiumFactoryProvider? Binding Chromium to main looper Looper (main, tid 1) {23858b22}
08-14 22:50:37.811 30719-30719/com.guile.occ I/LibraryLoader? Expected native library version number "",actual native library version number ""
08-14 22:50:37.811 30719-30719/com.guile.occ I/chromium? [INFO:library_loader_hooks.cc(120)] Chromium logging enabled: level = 0, default verbosity = 0
08-14 22:50:37.821 30719-30719/com.guile.occ I/BrowserStartupController? Initializing chromium process, singleProcess=true
08-14 22:50:37.821 30719-30719/com.guile.occ W/art? Attempt to remove local handle scope entry from IRT, ignoring
08-14 22:50:37.821 30719-30719/com.guile.occ E/SysUtils? ApplicationContext is null in ApplicationStatus
08-14 22:50:37.831 30719-30719/com.guile.occ W/chromium? [WARNING:resource_bundle.cc(285)] locale_file_path.empty()
08-14 22:50:37.831 30719-30719/com.guile.occ E/libEGL? validate_display:255 error 3008 (EGL_BAD_DISPLAY)
08-14 22:50:37.831 30719-30719/com.guile.occ E/libEGL? validate_display:255 error 3008 (EGL_BAD_DISPLAY)
08-14 22:50:37.841 30719-30871/com.guile.occ W/AudioManagerAndroid? Requires BLUETOOTH permission
08-14 22:50:37.861 30719-30719/com.guile.occ W/art? Attempt to remove local handle scope entry from IRT, ignoring
08-14 22:50:37.871 30719-30719/com.guile.occ W/AwContents? onDetachedFromWindow called when already detached. Ignoring
08-14 22:50:37.881 30719-30719/com.guile.occ D/PhoneWindow? *FMB* installDecor mIsFloating : false
08-14 22:50:37.881 30719-30719/com.guile.occ D/PhoneWindow? *FMB* installDecor flags : 8454400
08-14 22:50:37.881 30719-30719/com.guile.occ D/SecWifiDisplayUtil? Metadata value : SecSettings2
08-14 22:50:37.891 30719-30719/com.guile.occ D/PhoneWindow? *FMB* isFloatingMenuEnabled mFloatingMenuBtn : null
08-14 22:50:37.891 30719-30719/com.guile.occ D/PhoneWindow? *FMB* isFloatingMenuEnabled return false
08-14 22:50:37.891 30719-30719/com.guile.occ D/SecWifiDisplayUtil? Metadata value : SecSettings2
08-14 22:50:37.911 30719-30719/com.guile.occ D/SRIB_DCS? log_dcs ThreadedRenderer::initialize entered!
08-14 22:50:37.911 30719-30754/com.guile.occ D/mali_winsys? new_window_surface returns 0x3000, [1440x2560]-format:1
08-14 22:50:37.921 30719-30719/com.guile.occ D/PhoneWindow? *FMB* isFloatingMenuEnabled mFloatingMenuBtn : null
08-14 22:50:37.921 30719-30719/com.guile.occ D/PhoneWindow? *FMB* isFloatingMenuEnabled return false
08-14 22:50:37.921 30719-30719/com.guile.occ D/SRIB_DCS? log_dcs ThreadedRenderer::initialize entered!
08-14 22:50:37.921 30719-30754/com.guile.occ D/mali_winsys? new_window_surface returns 0x3000, [1440x2560]-format:1
08-14 22:50:37.931 30719-30869/com.guile.occ W/chromium? [WARNING:data_reduction_proxy_config.cc(423)] SPDY proxy OFF at startup
08-14 22:50:38.001 30719-30719/com.guile.occ D/PhoneWindow? *FMB* installDecor mIsFloating : true
08-14 22:50:38.001 30719-30719/com.guile.occ D/PhoneWindow? *FMB* installDecor flags : 8388610
08-14 22:50:38.041 30719-30719/com.guile.occ D/PhoneWindow? *FMB* isFloatingMenuEnabled mFloatingMenuBtn : null
08-14 22:50:38.041 30719-30719/com.guile.occ D/PhoneWindow? *FMB* isFloatingMenuEnabled return false
08-14 22:50:38.041 30719-30719/com.guile.occ D/SRIB_DCS? log_dcs ThreadedRenderer::initialize entered!
08-14 22:50:38.041 30719-30754/com.guile.occ D/mali_winsys? new_window_surface returns 0x3000, [667x461]-format:1
08-14 22:50:38.061 30719-30719/com.guile.occ I/Timeline? Timeline: Activity_idle id: android.os.BinderProxy@188ff958 time:88938965
08-14 22:50:38.061 30719-30719/com.guile.occ V/ActivityThread? updateVisibility : ActivityRecord{30111b2c token=android.os.BinderProxy@38cba1f0 {com.guile.occ/com.parse.ui.ParseLoginActivity}} show : true
08-14 22:50:40.631 30719-30719/com.guile.occ W/BindingManager? Cannot call determinedVisibility() - never saw a connection for the pid: 30719
08-14 22:50:41.221 30719-30719/com.guile.occ E/ViewRootImpl? sendUserActionEvent() mView == null
08-14 22:50:44.081 30719-30719/com.guile.occ D/ViewRootImpl? ViewPostImeInputStage ACTION_DOWN
08-14 22:50:44.211 30719-30719/com.guile.occ D/PhoneWindow? *FMB* isFloatingMenuEnabled mFloatingMenuBtn : null
08-14 22:50:44.211 30719-30719/com.guile.occ D/PhoneWindow? *FMB* isFloatingMenuEnabled return false
08-14 22:50:44.231 30719-30719/com.guile.occ D/SRIB_DCS? log_dcs ThreadedRenderer::initialize entered!
08-14 22:50:44.241 30719-30754/com.guile.occ D/mali_winsys? new_window_surface returns 0x3000, [667x461]-format:1
08-14 22:50:45.901 30719-30719/com.guile.occ W/BindingManager? Cannot call determinedVisibility() - never saw a connection for the pid: 30719
08-14 22:50:45.981 30719-30719/com.guile.occ E/ViewRootImpl? sendUserActionEvent() mView == null
08-14 22:50:45.981 30719-30719/com.guile.occ E/ViewRootImpl? sendUserActionEvent() mView == null
08-14 22:50:46.001 30719-30719/com.guile.occ E/ViewRootImpl? sendUserActionEvent() mView == null
08-14 22:50:46.011 30719-30756/com.guile.occ I/System.out? (HTTPLog)-Static: isSBSettingEnabled false
08-14 22:50:46.011 30719-30719/com.guile.occ I/Timeline? Timeline: Activity_idle id: android.os.BinderProxy@38cba1f0 time:88946918
08-14 22:50:52.751 30719-30853/com.guile.occ I/System.out? (HTTPLog)-Static: isSBSettingEnabled false
Run Code Online (Sandbox Code Playgroud)
启用原生Facebook应用程序的LogCat:
08-14 22:59:45.761 13249-13249/com.guile.occ E/Zygote? MountEmulatedStorage()
08-14 22:59:45.761 13249-13249/com.guile.occ E/Zygote? v2
08-14 22:59:45.761 13249-13249/com.guile.occ I/libpersona? KNOX_SDCARD checking this for 10033
08-14 22:59:45.761 13249-13249/com.guile.occ I/libpersona? KNOX_SDCARD not a persona
08-14 22:59:45.761 13249-13249/com.guile.occ I/SELinux? Function: selinux_compare_spd_ram , priority [2] , priority version is VE=SEPF_SM-G925F_5.1.1_0030
08-14 22:59:45.761 13249-13249/com.guile.occ E/SELinux? [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
08-14 22:59:45.761 13249-13249/com.guile.occ I/art? Late-enabling -Xcheck:jni
08-14 22:59:45.771 13249-13249/com.guile.occ D/TimaKeyStoreProvider? TimaSignature is unavailable
08-14 22:59:45.781 13249-13249/com.guile.occ D/ActivityThread? Added TimaKeyStore provider
08-14 22:59:45.801 13249-13249/com.guile.occ I/InjectionManager? Inside getClassLibPath + mLibMap{0=, 1=}
08-14 22:59:45.811 13249-13249/com.guile.occ I/InjectionManager? Inside getClassLibPath caller
08-14 22:59:45.871 13249-13285/com.guile.occ I/System.out? (HTTPLog)-Static: isSBSettingEnabled false
08-14 22:59:45.871 13249-13285/com.guile.occ I/System.out? (HTTPLog)-Static: isShipBuild true
08-14 22:59:45.871 13249-13285/com.guile.occ I/System.out? (HTTPLog)-Thread-33185-403364762: SmartBonding Enabling is false, SHIP_BUILD is true, log to file is false, DBG is false
08-14 22:59:45.871 13249-13285/com.guile.occ I/System.out? (HTTPLog)-Thread-33185-403364762: SMARTBONDING_FEATURE_ENABLED is true
08-14 22:59:45.871 13249-13285/com.guile.occ I/System.out? (HTTPLog)-Static: isSBSettingEnabled false
08-14 22:59:45.881 13249-13285/com.guile.occ I/System.out? KnoxVpnUidStorageknoxVpnSupported API value returned is false
08-14 22:59:45.891 13249-13249/com.guile.occ D/InjectionManager? InjectionManager
08-14 22:59:45.891 13249-13249/com.guile.occ D/InjectionManager? fillFeatureStoreMap com.guile.occ
08-14 22:59:45.901 13249-13249/com.guile.occ I/InjectionManager? Constructor com.guile.occ, Feature store :{}
08-14 22:59:45.901 13249-13249/com.guile.occ I/InjectionManager? featureStore :{}
08-14 22:59:45.911 13249-13249/com.guile.occ D/SecWifiDisplayUtil? Metadata value : SecSettings2
08-14 22:59:45.911 13249-13249/com.guile.occ I/Timeline? Timeline: Activity_launch_request id:com.guile.occ time:89486819
08-14 22:59:45.921 13249-13249/com.guile.occ D/Activity? performCreate Call Injection manager
08-14 22:59:45.921 13249-13249/com.guile.occ I/InjectionManager? dispatchOnViewCreated > Target : com.guile.occ.LoginActivity isFragment :false
08-14 22:59:45.941 13249-13249/com.guile.occ D/Activity? performCreate Call Injection manager
08-14 22:59:45.961 13249-13249/com.guile.occ D/PhoneWindow? *FMB* installDecor mIsFloating : false
08-14 22:59:45.961 13249-13249/com.guile.occ D/PhoneWindow? *FMB* installDecor flags : -2139029248
08-14 22:59:45.991 13249-13249/com.guile.occ I/InjectionManager? dispatchOnViewCreated > Target : com.parse.ui.ParseLoginActivity isFragment :false
08-14 22:59:46.001 13249-13249/com.guile.occ D/SecWifiDisplayUtil? Metadata value : SecSettings2
08-14 22:59:46.001 13249-13319/com.guile.occ D/OpenGLRenderer? Use EGL_SWAP_BEHAVIOR_PRESERVED: true
08-14 22:59:46.011 13249-13249/com.guile.occ D/PhoneWindow? *FMB* isFloatingMenuEnabled mFloatingMenuBtn : null
08-14 22:59:46.011 13249-13249/com.guile.occ D/PhoneWindow? *FMB* isFloatingMenuEnabled return false
08-14 22:59:46.031 13249-13249/com.guile.occ D/SRIB_DCS? log_dcs ThreadedRenderer::initialize entered!
08-14 22:59:46.061 13249-13319/com.guile.occ D/libEGL? loaded /vendor/lib64/egl/libGLES_mali.so
08-14 22:59:46.071 13249-13319/com.guile.occ I/OpenGLRenderer? Initialized EGL, version 1.4
08-14 22:59:46.081 13249-13319/com.guile.occ I/OpenGLRenderer? HWUI protection enabled for context , &this =0x7f7d8d6d60 ,&mEglDisplay = 1 , &mEglConfig = 2107732656
08-14 22:59:46.081 13249-13319/com.guile.occ D/OpenGLRenderer? Get maximum texture size. GL_MAX_TEXTURE_SIZE is 8192
08-14 22:59:46.081 13249-13319/com.guile.occ D/OpenGLRenderer? Enabling debug mode 0
08-14 22:59:46.081 13249-13319/com.guile.occ D/mali_winsys? new_window_surface returns 0x3000, [1440x2560]-format:1
08-14 22:59:46.191 13249-13249/com.guile.occ I/Timeline? Timeline: Activity_idle id: android.os.BinderProxy@ce0ed1c time:89487096
08-14 22:59:46.191 13249-13249/com.guile.occ I/Timeline? Timeline: Activity_idle id: android.os.BinderProxy@38cba1f0 time:89487096
08-14 22:59:58.291 13249-13249/com.guile.occ D/ViewRootImpl? ViewPostImeInputStage ACTION_DOWN
08-14 22:59:58.401 13249-13249/com.guile.occ I/Timeline? Timeline: Activity_launch_request id:com.guile.occ time:89499300
08-14 22:59:58.461 13249-13249/com.guile.occ D/PhoneWindow? *FMB* installDecor mIsFloating : false
08-14 22:59:58.461 13249-13249/com.guile.occ D/PhoneWindow? *FMB* installDecor flags : 8454400
08-14 22:59:58.461 13249-13249/com.guile.occ D/Activity? performCreate Call Injection manager
08-14 22:59:58.471 13249-13249/com.guile.occ I/InjectionManager? dispatchOnViewCreated > Target : com.facebook.FacebookActivity isFragment :false
08-14 22:59:58.481 13249-13249/com.guile.occ D/SecWifiDisplayUtil? Metadata value : SecSettings2
08-14 22:59:58.491 13249-13249/com.guile.occ D/PhoneWindow? *FMB* isFloatingMenuEnabled mFloatingMenuBtn : null
08-14 22:59:58.491 13249-13249/com.guile.occ D/PhoneWindow? *FMB* isFloatingMenuEnabled return false
08-14 22:59:58.501 13249-13249/com.guile.occ D/SRIB_DCS? log_dcs ThreadedRenderer::initialize entered!
08-14 22:59:58.501 13249-13319/com.guile.occ D/mali_winsys? new_window_surface returns 0x3000, [1440x2560]-format:1
08-14 22:59:58.541 13249-13249/com.guile.occ I/Timeline? Timeline: Activity_idle id: android.os.BinderProxy@5562ab1 time:89499446
08-14 22:59:58.541 13249-13249/com.guile.occ V/ActivityThread? updateVisibility : ActivityRecord{2d7dbc2b token=android.os.BinderProxy@ce0ed1c {com.guile.occ/com.parse.ui.ParseLoginActivity}} show : true
08-14 22:59:58.691 13249-13457/com.guile.occ I/System.out? (HTTPLog)-Static: isSBSettingEnabled false
08-14 22:59:58.911 13249-13249/com.guile.occ I/Timeline? Timeline: Activity_idle id: android.os.BinderProxy@ce0ed1c time:89499810
Run Code Online (Sandbox Code Playgroud)
每次Android迭代都有自己的WebView实现,无论好坏.5.0+ Androids使用基于应用程序的实现,它可以获得定期更新等,但也与之前的实现不同.
长话短说,我相信这是我的问题.该WebView可以保持您的登录会话或保持凭据的cookie存储重复使用/确认.我不能在这里提供直接的解决方案,因为我不熟悉新的WebView内部,但在每次新登录之前尝试强制清除会话和/或cookie存储,看看会发生什么.
我可以在你的logcat中看到这个
08-12 19:48:53.371 32227-32227/com.guile.occ E/ActivityThread? Failed to find provider info for com.facebook.katana.provider.PlatformProvider
08-12 19:48:53.371 32227-32227/com.guile.occ E/ActivityThread? Failed to find provider info for com.facebook.wakizashi.provider.
Run Code Online (Sandbox Code Playgroud)
这意味着它无法连接互联网检查此Android:无法找到com.facebook.wakizashi.provider.PlatformProvider的提供商信息
并尝试在清单中添加此项
<uses-permission android:name="android.permission.SET_DEBUG_APP"/>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1509 次 |
| 最近记录: |