将Facebook凭据存储在Google智能锁密码中
我可以在智能锁密码中存储基本的用户名/密码凭据。对于Google凭据,有大量的文档和示例:
GoogleSignInAccount gsa = signInResult.getSignInAccount();
Credential credential = new Credential.Builder(gsa.getEmail())
.setAccountType(IdentityProviders.GOOGLE)
.setName(gsa.getDisplayName())
.setProfilePictureUri(gsa.getPhotoUrl())
.build();
到目前为止,我无法存储Facebook凭据。它应该是类似的东西。但确切是什么?或者它是完全不同的东西或者不支持的吗?
Credential credential = new Credential.Builder(<what goes here?!>)
.setAccountType(IdentityProviders.FACEBOOK)
.setName(<and here?>)
.setProfilePictureUri(<is this necessary?>)
.build();