将 Facebook 凭据存储在 Google Smart Lock 密码中
我能够将基本的用户名/密码凭据存储在 Smart Lock 密码中。有大量关于 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();