Firebase2 Facebook Authentication with iOS Swift (Without FBSDKLoginButton) <p>I am trying to authenticate my login with Firebase 2 without using FBSDKLoginButton. I used the FBSDKLoginManager to get my FB Login token, then when i try to authenticate that with Firebase i get the following error:</p> <p><em>Error Domain=FIRAuthErrorDomain Code=17023 "An invalid API Key was supplied in the request." UserInfo={NSLocalizedDescription=An invalid API Key was supplied in the request., error_name=ERROR_INVALID_API_KEY}</em></p> <pre><code> let mngr = FBSDKLoginManager(); mngr.logInWithReadPermissions(["email"], fromViewController: self) { (result, error) in if FBSDKAccessToken.currentAccessToken() != nil { let credential = FIRFacebookAuthProvider.credentialWithAccessToken(FBSDKAccessToken.currentAccessToken().tokenString); FIRAuth.auth()?.signInWithCredential(credential, completion: { (user, error) in if error == nil { print("user: \(user?.displayName)"); } else { print(error.debugDescription); } }) } } </code></pre> <p>I have all the info set in the plist:</p> <pre><code>&lt;string&gt;VegFru&lt;/string&gt; &lt;key&gt;LSApplicationQueriesSchemes&lt;/key&gt; &lt;array&gt; &lt;string&gt;fbauth2&lt;/string&gt; &lt;string&gt;fbapi&lt;/string&gt; &lt;string&gt;fb-messenger-api&lt;/string&gt; &lt;string&gt;fbshareextension&lt;/string&gt; &lt;string&gt;fbapi20130214&lt;/string&gt; &lt;string&gt;fbapi20130410&lt;/string&gt; &lt;string&gt;fbapi20130702&lt;/string&gt; &lt;string&gt;fbapi20131010&lt;/string&gt; &lt;string&gt;fbapi20131219&lt;/string&gt; &lt;string&gt;fbapi20140410&lt;/string&gt; &lt;string&gt;fbapi20140116&lt;/string&gt; &lt;string&gt;fbapi20150313&lt;/string&gt; &lt;string&gt;fbapi20150629&lt;/string&gt; &lt;string&gt;fbapi20160328&lt;/string&gt; &lt;string&gt;fbauth&lt;/string&gt; &lt;string&gt;fb-messenger-api20140430&lt;/string&gt; &lt;string&gt;fb-messenger-platform-20150128&lt;/string&gt; &lt;string&gt;fb-messenger-platform-20150218&lt;/string&gt; &lt;string&gt;fb-messenger-platform-20150305&lt;/string&gt; &lt;/array&gt; </code></pre> <p>I also checked the API from the facebook app and it matches 100%. I am really clueless why its not working.</p> <p>Thank you in advance.</p>