Store Facebook Credential in Google Smart Lock Password
I was able to store basic username/password credentials in Smart Lock Password. There is plenty of documentation and examples for Google credentials:
GoogleSignInAccount gsa = signInResult.getSignInAccount();
Credential credential = new Credential.Builder(gsa.getEmail())
.setAccountType(IdentityProviders.GOOGLE)
.setName(gsa.getDisplayName())
.setProfilePictureUri(gsa.getPhotoUrl())
.build();
But so far, I was unable to store a Facebook credential. It should be something similar. But what exactly? Or is it something completely different or not supported?
Credential credential = new Credential.Builder(<what goes here?!>)
.setAccountType(IdentityProviders.FACEBOOK)
.setName(<and here?>)
.setProfilePictureUri(<is this necessary?>)
.build();