在搜索 stackoverflow 但没有找到我的问题的解决方案后,我发布了这个问题。
我的目标是在 Android
应用程序中获得 facebook 共同好友。我使用图 API
查询
private void getAndDisplayMutualFriends(final String fbId){
Session myFbSession = Session.getActiveSession();
Bundle params = new Bundle();
params.putString("fields", "context.fields(mutual_friends)");
/* make the API call */
new Request(
myFbSession,
"/{"+fbId+"}",
params,
HttpMethod.GET,
new Request.Callback() {
public void onCompleted(Response response) {
Log.d("JSONRESPONSE","FB ID="+fbId);
Log.d("JSONRESPONSE",""+response.toString());
}
}
).executeAsync();
}
fbId
是登录用户想要与其成为共同好友的好友的 facebook Id 但我得到:
{Response: responseCode: 404, graphObject: null, error: {HttpStatus: 404, errorCode: 803, errorType: OAuthException, errorMessage: (#803) Some of the aliases you requested do not exist: {100008114977883}}, isFromCache:false}
我从一个星期开始就被困在这个问题上,登录用户,共同的 friend 和 friend 已授予“user_friends”权限。
您的帮助将不胜感激。谢谢
最佳答案
错误响应解释得很好
响应:responseCode:404,graphObject:null,错误:{HttpStatus:404,errorCode:803,errorType:OAuthException,errorMessage:(#803)您请求的某些别名不存在:{100008114977883}},isFromCache :false
此别名 {100008114977883}
不存在,删除 {}
关于android - 在 Android 中获取 Facebook 共同好友,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25348704/