当我尝试使用facebook sdk登录时,它的工作正常:
Request.newMeRequest(session, new GraphUserCallback() {
@Override
public void onCompleted(GraphUser user, Response response) {
Log.v("t", "response: " + response.toString());
if(user != null){
Log.v("t", "Name: " + user.getName());
}
}
}).executeAsync();
而cource我在logcat中有我的名字,但每当我尝试用同样的请求获取我的朋友时,我得到“500内部错误”。代码如下。
Request.newMyFriendsRequest(session, new GraphUserListCallback() {
@Override
public void onCompleted(List<GraphUser> users, Response response) {
Log.v("t", "response: " + response.toString());
}
}).executeAsync();
回复内容:
response: {Response: responseCode: 500, graphObject: null, error: {HttpStatus: 500, errorCode: 1, errorType: OAuthException, errorMessage: An unknown error has occurred.}, isFromCache:false}
知道为什么吗?顺便说一句,当我尝试获取它时,FriendsPickerFragment我有空列表。感谢您提前得到任何答案。 此致