2

そこで、iOS SDK を使用して Facebook グラフ API でページの名前を取得しようとしています。

NSDictionary* params = [NSDictionary dictionaryWithObject:@"id,name" forKey:@"fields"];

[[FBRequest requestWithGraphPath:[NSString stringWithFormat:@"%@", userId] parameters:params HTTPMethod:nil] startWithCompletionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
     name = [result objectForKey:@"name"];
     //do more stuff
}];

エラーが発生します

error = {
   code = 803;
   message = "(#803) Some of the aliases you requested do not exist: (null)";
   type = OAuthException;
};

私の accesstoken は有効であり、GETリクエストで Graph API Explorer を使用しているときに機能します5120148605?fields=id,name,about,bio

この奇妙な行動のアイデアを持っている人はいますか?

4

1 に答える 1