Xcode 10.1
言語:swift
Firebaseでログイン認証においてFacebookを使用しようと思い、様々な記事を参考にしてやってみたのですがなかなかうまくいきません。
問題はアクセストークンが取得できない所です。
取得できずErrorが出てしまいます。
ViewController
1func loginButton(_ loginButton: FBSDKLoginButton!, didCompleteWith result: FBSDKLoginManagerLoginResult!, error: Error!) { 2 3 if error != nil { 4 print("Error") 5 return 6 } 7 // ログイン時の処理 8 let credential = FacebookAuthProvider.credential(withAccessToken: FBSDKAccessToken.current().tokenString) 9 Auth.auth().signInAndRetrieveData(with: credential) { (authResult, error) in 10 if error != nil { 11 // ... 12 return 13 } 14 } 15 }
eroor1
1Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: <CTServiceDescriptor 0x280efd940, domain=1, instance=1>
error2
1Error 22018-12-20 03:20:34.641469+0900 GimeGime[582:96582] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C9.1.1:2][0x107f0a650] get output frames failed, state 8196 32018-12-20 03:20:34.641799+0900 GimeGime[582:96582] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C9.1.1:2][0x107f0a650] get output frames failed, state 8196 42018-12-20 03:20:34.642452+0900 GimeGime[582:96582] TIC Read Status [9:0x0]: 1:57 52018-12-20 03:20:34.642503+0900 GimeGime[582:96582] TIC Read Status [9:0x0]: 1:57 6
AppDelegte
1func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 2 3 FirebaseApp.configure() 4 5 return true 6 }
できる限りのことは試したのですが、、、
ツイッターでは誰かが、SDKのバグとおっしゃっていたのですが、それは本当なのでしょうか、、、?
助けていただけると幸いです。
また、確実に参考になる記事などを共有してもらえると更に幸いです!
あなたの回答
tips
プレビュー