{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/150","labels_url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/150/comments","events_url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/150/events","html_url":"https://github.com/NativeScript/ios-runtime/issues/150","id":80844343,"number":150,"title":"error when trying to implement Facebook login on ios","user":{"login":"enchev","id":5804953,"avatar_url":"https://avatars.githubusercontent.com/u/5804953?v=3","gravatar_id":"","url":"https://api.github.com/users/enchev","html_url":"https://github.com/enchev","followers_url":"https://api.github.com/users/enchev/followers","following_url":"https://api.github.com/users/enchev/following{/other_user}","gists_url":"https://api.github.com/users/enchev/gists{/gist_id}","starred_url":"https://api.github.com/users/enchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enchev/subscriptions","organizations_url":"https://api.github.com/users/enchev/orgs","repos_url":"https://api.github.com/users/enchev/repos","events_url":"https://api.github.com/users/enchev/events{/privacy}","received_events_url":"https://api.github.com/users/enchev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-05-26T07:51:08Z","updated_at":"2015-06-17T18:32:15Z","closed_at":null,"body":"_From @duongnhatduy on May 20, 2015 9:28_\n\nI tried to use iOS SDK, but it crash the whole app without recovering: \r\n```typescript \r\nvar myF = function() { }; \r\nexport function m() { \r\n  var fbLoginMng: FBSDKLoginManager = new FBSDKLoginManager(); \r\n  console.log(nsArray); \r\n  try {\r\n    fbLoginMng.logInWithReadPermissionsHandler([\"email\"], myF); \r\n    } catch(e){ \r\n      console.log(e, JSON.stringify(e,null, 2)) \r\n    } \r\n} \r\n``` \r\nlog \r\n``` \r\n/app/loginpage/login-page.js:27:16: CONSOLE LOG ( \r\n    email \r\n) \r\n1   0x3cc36d Inspector::JSGlobalObjectInspectorController::reportAPIException(JSC::ExecState*, JSC::JSValue) \r\n2   0xede33 NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::JSValue) \r\n3   0xd1716 -[TNSRuntime initWithApplicationPath:]::$_0::__invoke(NSException*) \r\n4   0x2ad7b80 __handleUncaughtException \r\n5   0x2381d3d _objc_terminate() \r\n6   0x314bcf0 std::__terminate(void (*)()) \r\n7   0x314b70f __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) \r\n8   0x2381bae _objc_exception_destructor(void*) \r\n9   0x6071b0 +[FBSDKInternalUtility validateURLSchemes] \r\n10  0x6071d4 +[FBSDKInternalUtility validateURLSchemes] \r\n11  0x630d55 -[FBSDKLoginManager logInParametersWithPermissions:] \r\n12  0x6311f5 -[FBSDKLoginManager logInWithBehavior:] \r\n13  0x6311ae -[FBSDKLoginManager logInWithPermissions:handler:] \r\n14  0x62ff51 -[FBSDKLoginManager logInWithReadPermissions:handler:] \r\n15  0x5f0c9d .LCFI1 \r\n16  0x5f127f ffi_call \r\n17  0xe3eca NativeScript::FFICall::executeFFICall(JSC::ExecState*, void (*)()) \r\n18  0xceac4 NativeScript::ObjCMethodCall::executeCall(JSC::ExecState*) \r\n19  0x45fd9f JSC::LLInt::setUpCall(JSC::ExecState*, JSC::Instruction*, JSC::CodeSpecializationKind, JSC::JSValue, JSC::LLIntCallLinkInfo*) \r\n20  0x45bc46 llint_slow_path_call \r\n21  0x465876 llint_entry \r\n22  0x465886 llint_entry \r\n23  0x465839 llint_entry \r\n24  0x465886 llint_entry \r\n25  0x461446 callToJavaScript \r\n26  0x3303f1 JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*) \r\n27  0x3112d5 JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) \r\n28  0x13b67d JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) \r\n29  0xcf50f NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::callFunction(JSC::JSValue const&, JSC::ArgList const&, void*) \r\n30  0xced8a NativeScript::ObjCMethodCallback::ffiClosureCallback(void*, void**, void*) \r\n31  0xcf5f2 NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::ffiClosureCallback(ffi_cif*, void*, void**, void*) \r\nSession ended without errors. \r\n```\n\n_Copied from original issue: NativeScript/NativeScript#192_"},"comment":{"url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/comments/112906841","html_url":"https://github.com/NativeScript/ios-runtime/issues/150#issuecomment-112906841","issue_url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/150","id":112906841,"user":{"login":"dbbk","id":711700,"avatar_url":"https://avatars.githubusercontent.com/u/711700?v=3","gravatar_id":"","url":"https://api.github.com/users/dbbk","html_url":"https://github.com/dbbk","followers_url":"https://api.github.com/users/dbbk/followers","following_url":"https://api.github.com/users/dbbk/following{/other_user}","gists_url":"https://api.github.com/users/dbbk/gists{/gist_id}","starred_url":"https://api.github.com/users/dbbk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbbk/subscriptions","organizations_url":"https://api.github.com/users/dbbk/orgs","repos_url":"https://api.github.com/users/dbbk/repos","events_url":"https://api.github.com/users/dbbk/events{/privacy}","received_events_url":"https://api.github.com/users/dbbk/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T18:32:15Z","updated_at":"2015-06-17T18:32:15Z","body":"I've had no problems with deploying to device until adding the Facebook SDK. I even recreated the project from scratch and could deploy the Hello World sample fine, but it stopped working once the SDK library was added."}}