在使用FBSDK實施Facebook Login Auth後,我一直試圖在Firebase控制檯的Auth選項卡中查看/獲取用戶。Firebase Facebook登錄錯誤:FIRAuthErrorDomain - Facebook上的debug_token回覆失敗
我採取fb憑據並將它們傳遞給FIRAuth,它具有用戶和錯誤參數。在打印可見性後,錯誤肯定發生,但我正在努力檢查它。我嘗試了斷點,並得到了一些對我來說毫無意義的東西(我是一個初學者,2天前開始Swift並且在2個月前編碼)。
代碼: 正如你剛纔在日誌中看到的那樣,print("error above")
被執行。
錯誤: 左邊是斷點分析的輸出。它看起來像廢話,我和誰見過他,我身邊的人:(
而且你可以在上面看到在右邊的日誌,print("credential above")
被處死。而credential.description
立即它上面,一個FIRFacebookAuthCredential
對象實例。
這使我想起了Facebook驗證已經發生成功地,但火力地堡驗證的示數。
上,我可能會錯誤的熱烈歡迎任何想法,我是新來的斯威夫特和火力地堡完全。
備註: 我已安裝並導入所有FBSDK和Firebase依賴項。 我已經完成了Firebase docs中的所有步驟,包括它所引用的Facebook Dev API在線界面上的步驟。所以我想我已經介紹了所有的api設置。
聲明:Here's the full code但被警告有點噁心。
編輯
我發現了更詳細的錯誤信息這有助於調試,故得此
"Optional(Error Domain=FIRAuthErrorDomain Code=17999 \"An internal error has occurred, print and inspect the error details for more information.\" UserInfo={NSUnderlyingError=0x608000258c60 {Error Domain=FIRAuthInternalErrorDomain Code=3 \"(null)\" UserInfo={FIRAuthErrorUserInfoDeserializedResponseKey={\n code = 400;\n errors = (\n {\n domain = global;\n message = \"Unsuccessful debug_token response from Facebook: {\\\"error\\\":{\\\"message\\\":\\\"Invalid OAuth access token signature.\\\",\\\"type\\\":\\\"OAuthException\\\",\\\"code\\\":190,\\\"fbtrace_id\\\":\\\"FAA\\\\/****redacted****\\\」}}\」;\n reason = invalid;\n }\n );\n message = \"Unsuccessful debug_token response from Facebook: {\\\"error\\\":{\\\"message\\\":\\\"Invalid OAuth access token signature.\\\",\\\"type\\\":\\\"OAuthException\\\",\\\"code\\\":190,\\\"fbtrace_id\\\":\\\"FAA\\\\/***redacted***\\\」}}\」;\n}}}, error_name=ERROR_INTERNAL_ERROR, NSLocalizedDescription=An internal error has occurred, print and inspect the error details for more information.})"
大聲笑..我打了同樣的斷點。 – mtb