0
에 종료 사용자 로그인. 친구 목록을 가져 오려고합니다 (단, 사용자가 친구 초대 버튼 클릭).문제는 내가 fblogin을 위해 아래의 코드를 작성했다 ios9
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
initWithGraphPath:@"/me/invitable_friends?limit=5000"
parameters:@{@"fields": @"name,first_name, last_name,invitable_friends"}
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
NSLog(@"result==>%@",result);
}];
나는 위의 코드에서 적절한 친구 목록을 얻고있다 :
내가 friendlist 가져 오기 위해 사용하는 코드 친구 목록을 가져 오기합니다. 문제가 있습니다. 응용 프로그램을 종료하고 응용 프로그램을 다시 연 다음 친구 목록을 다시 가져 오려고하면 오류가 발생합니다. 내가 무엇입니까오류는 다음과 같습니다
Error Domain=com.facebook.sdk.core Code=8 "(null)" UserInfo={com.facebook.sdk:FBSDKGraphRequestErrorCategoryKey=0, com.facebook.sdk:FBSDKGraphRequestErrorHTTPStatusCodeKey=400, com.facebook.sdk:FBSDKErrorDeveloperMessageKey=An active access token must be used to query information about the current user., com.facebook.sdk:FBSDKGraphRequestErrorGraphErrorCode=2500, com.facebook.sdk:FBSDKGraphRequestErrorParsedJSONResponseKey={
body = {
error = {
code = 2500;
"fbtrace_id" = BrC8am8ChZ6;
message = "An active access token must be used to query information about the current user.";
type = OAuthException;
};
};
code = 400;
}}