首页 文章

iOS上的React Native Facebook登录错误1349003

提问于
浏览
1

我在Facebook登录时只有iOS的错误

环境

输出 react-native info

Environment:
  OS: macOS High Sierra 10.13.1
  Node: 8.9.1
  Yarn: 1.3.2
  npm: 5.5.1
  Watchman: 4.9.0
  Xcode: Xcode 9.1 Build version 9B55
  Android Studio: 3.0 AI-171.4408382

Packages: (wanted => installed)
  react: 16.0.0-alpha.12 => 16.0.0-alpha.12
  react-native: ^0.48.2 => 0.48.4

react-native-fbsdk@0.6.3

重现步骤

  • 启动react-native,打开iOS应用

  • 使用Facebook登录

  • 使用Facebook验证并批准权限

  • 遇到错误(请参阅下面附图和日志)

预期行为

成功从Facebook获得 access_token

实际行为

截图:

React Native Facebook login error 1349003 on iOS

这是输出的详细日志:

{
  framesToPop: 1,
  code: 'FacebookSDK',
  nativeStackIOS: [
    '0   WeFit-DEV                           0x000000010f6122e6 RCTJSErrorFromCodeMessageAndNSError + 134',
    '1   WeFit-DEV                           0x000000010f5954b8 __41-[RCTModuleMethod processMethodSignature]_block_invoke_2.216 + 184',
    '2   WeFit-DEV                           0x000000010f8e8c77 __71-[RCTFBSDKLoginManager _loginWithPermissions:resolver:rejecter:isRead:]_block_invoke + 135',
    '3   WeFit-DEV                           0x000000010f93b445 -[FBSDKLoginManager invokeHandler:error:] + 158',
    '4   WeFit-DEV                           0x000000010f93ae15 -[FBSDKLoginManager completeAuthentication:expectChallenge:] + 446',
    '5   WeFit-DEV                           0x000000010f937d6b -[FBSDKLoginURLCompleter completeLogIn:withHandler:] + 369',
    '6   WeFit-DEV                           0x000000010f93cef1 -[FBSDKLoginManager(Native) application:openURL:sourceApplication:annotation:] + 400',
    '7   WeFit-DEV                           0x000000010f90738f __77-[FBSDKApplicationDelegate application:openURL:sourceApplication:annotation:]_block_invoke + 71',
    '8   UIKit                               0x0000000115b40932 -[UIPresentationController transitionDidFinish:] + 1346',
    '9   UIKit                               0x0000000115dc519a -[_UICurrentContextPresentationController transitionDidFinish:] + 44',
    '10  UIKit                               0x0000000115b447b5 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke_2 + 183',
    '11  UIKit                               0x000000011672be89 -[_UIViewControllerTransitionContext completeTransition:] + 102',
    '12  UIKit                               0x0000000115b3d6be -[UITransitionView notifyDidCompleteTransition:] + 251',
    '13  UIKit                               0x0000000115b3d335 -[UITransitionView _didCompleteTransition:] + 1397',
    '14  UIKit                               0x0000000115b3f9cc -[UITransitionView _transitionDidStop:finished:] + 104',
    '15  UIKit                               0x0000000115a6299d -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 354',
    '16  UIKit                               0x0000000115a62fde -[UIViewAnimationState animationDidStop:finished:] + 293',
    '17  UIKit                               0x0000000115a63092 -[UIViewAnimationState animationDidStop:finished:] + 473',
    '18  QuartzCore                          0x0000000115564a2b _ZN2CA5Layer23run_animation_callbacksEPv + 323',
    '19  libdispatch.dylib                   0x0000000117e4c2b5 _dispatch_client_callout + 8',
    '20  libdispatch.dylib                   0x0000000117e56496 _dispatch_main_queue_callback_4CF + 1260',
    '21  CoreFoundation                      0x0000000110324ee9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9',
    '22  CoreFoundation                      0x00000001102e9592 __CFRunLoopRun + 2402',
    '23  CoreFoundation                      0x00000001102e89b9 CFRunLoopRunSpecific + 409',
    '24  GraphicsServices                    0x0000000118d1a9c6 GSEventRunModal + 62',
    '25  UIKit                               0x00000001159cc5e8 UIApplicationMain + 159',
    '26  WeFit-DEV                           0x000000010f3cddcf main + 111',
    '27  libdyld.dylib                       0x0000000117ec0d81 start + 1',
    '28  ???                                 0x0000000000000001 0x0 + 1'
  ],
  domain: 'com.facebook.sdk.core',
  userInfo: {
    'com.facebook.sdk:FBSDKGraphRequestErrorCategoryKey': 0,
    'com.facebook.sdk:FBSDKErrorDeveloperMessageKey': 'Login Error: There is an error in logging you into this application. Please try again later.',
    'com.facebook.sdk:FBSDKGraphRequestErrorGraphErrorCode': '1349003'
  }
}

不幸的是,没有运气搜索 FBSDKErrorDeveloperMessageKeyFBSDKGraphRequestErrorGraphErrorCode . 这个错误似乎只出现在iOS上和最近(我们的Android应用程序仍能正常工作)

最近有人面对这个?

谢谢

1 回答

相关问题