title: Firebase: Can I use Facebook's new Account Kit to authenticate app users?
body: <p>Facebook just introduced <a href="https://developers.facebook.com/products/account-kit" rel="noreferrer">Account Kit</a> at F8 2016.</p>
  
  <p>It enables app users to log in using their phone number or email address.</p>
  
  <p>I already tried to use it's returned access token to authenticate with the regular Facebook log in for Firebase, but it didn't work.</p>
  
  <p>Is there already a way to authenticate app users with Firebase using Facebook Account Kit?</p>
  
  <p><strong>Additional Info</strong></p>
  
  <p>I can login via Account Kit and receive an access token with <code>AccountKit.getCurrentAccessToken();</code></p>
  
  <p>I then try to authenticate with Firebase using the access token:</p>
  
  <p>Option 1)</p>
  
  <p><code>mFirebaseRef.authWithOAuthToken("facebook", accessToken.getToken(), new AuthResultHandler("facebook"));</code></p>
  
  <p>-> FirebaseError: Invalid authentication credentials provided.</p>
  
  <p>Option 2)</p>
  
  <p><code>mFirebaseRef.authWithCustomToken(accessToken.getToken(), new Firebase.AuthResultHandler() { ... }</code></p>
  
  <p>-> FirebaseError: Login Failed - Could not parse auth token.</p>
  
  <p>(Btw. the access token string is half the length of the token which is generated if I login using the regular Facebook Login button.)</p>
  
  <p>I wonder if I already can use the token generated by the Account Kit to authenticate with Firebase?</p>
  
  <p>--</p>
  
  <p>(Btw. I also tried to get an answer here: <a href="https://groups.google.com/forum/#!topic/firebase-talk/qrb1gWBKO3M" rel="noreferrer">https://groups.google.com/forum/#!topic/firebase-talk/qrb1gWBKO3M</a>)</p>