我正在使用 socialauth-4.2.jar 和 socialauth-android-2.6.jar api 将链接集成到我的 android 应用程序中。在 ResponseListener 类中,我正在获取使用链接登录的用户的信息。请参见以下代码:
private final class ResponseListener implements DialogListener {
@Override
public void onComplete(Bundle values) {
Log.v("", "FIRST NAME : " + adapter.getUserProfile().getFirstName());
Log.v("", "LAST NAME : " + adapter.getUserProfile().getLastName());
}
}
但我想配置文件 URL。我如何在使用 socialauth api 时获取个人资料 url?
最佳答案
据我所知,如果不修改 SocialAuth,您将无法获取公开个人资料网址。它不是 LinkedinImpl Provider 查询的字段之一。
从这一行可以看出
private static final String PROFILE_URL = "http://api.linkedin.com/v1/people/~:(id,first-name,last-name,languages,date-of-birth,picture-url,location:(name))";
关于android - 如何从 android 中的 SocialAuth Api 获取 linkedIn 公共(public)个人资料 url?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18571275/