Facebook just introduced the Account Suite at F8 2016.
It allows users of the application to register using their phone number or email address.
I already tried to use its returned access token for authentication with regular Facebook login for Firebase, but this did not work.
Is there a way to authenticate application users using Firebase using the Facebook Account Kit?
Additional Information
I can log in through the Account Kit and get the access token with AccountKit.getCurrentAccessToken();
Then I try to authenticate using Firebase using an access token:
Option 1)
mFirebaseRef.authWithOAuthToken("facebook", accessToken.getToken(), new AuthResultHandler("facebook"));
-> FirebaseError: Invalid authentication credentials.
Option 2)
mFirebaseRef.authWithCustomToken(accessToken.getToken(), new Firebase.AuthResultHandler() { ... }
-> FirebaseError: Login Failed - failed to parse authentication token.
(Btw. The access token string is half the length of the token that is generated if I log in using the regular Facebook login button.)
I wonder if I can already use the token generated by the set of accounts for authentication with Firebase?
-
(By the way, I also tried to get an answer here: https://groups.google.com/forum/#!topic/firebase-talk/qrb1gWBKO3M )
source share