Til*_*l S 9 android oauth socialauth
我正在使用socialauth-android库通过Facebook,Twitter和LinkedIn登录用户.
到目前为止,我找不到一种方法来获取oAuth-token.有没有办法在不重新实现库的部分的情况下访问它?
此外,当我想使用socialauth登录时(请参阅下面的代码)我必须手动输入用户名和密码,尽管我已经使用该设备设置了所有帐户.你能告诉socialauth使用这个帐户吗?
buttonFacebook.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
mSocialAdapter.authorize(ActivityLogin.this, Provider.FACEBOOK);
}
});
Run Code Online (Sandbox Code Playgroud)
Til*_*l S 13
我找到了获得令牌的方法
String token = mSocialAdapter.getCurrentProvider().getAccessGrant().getKey();
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1951 次 |
| 最近记录: |