图API共同好友请求错误

Graph API mutual friends request error

我在请求共同好友时遇到错误:

NSDictionary *params = @{
                         @"fields": @"context.fields(mutual_friends)",
                         };
/* make the API call */
[FBRequestConnection startWithGraphPath:[NSString stringWithFormat: @"/%@", friendId]
                             parameters:params
                             HTTPMethod:@"GET"
                      completionHandler:^(
                                          FBRequestConnection *connection,
                                          id result,
                                          NSError *error
                                          ) {
                          /* handle the result */
                          if (!error) {
                          NSLog(@"MUTUALS = %@",result);
                          } else {
                              NSLog(@"MUTUAL ERROR %@",error);
                          }
                      }];

MUTUAL ERROR 错误域=com.facebook.sdk代码=5 "The operation couldn’t be completed. (com.facebook.sdk error 5.)"用户信息=0x788b68f0 {com.facebook.sdk:ParsedJSONResponseKey={ body = { 错误 = { 代码 = 100; 消息 = "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api"; 类型 = GraphMethodException; }; }; 代码 = 400; }, com.facebook.sdk:HTTPStatusCode=400}

friendId 肯定是正确的。我做错了什么?

问题已解决:"friendId"用户未授予相应权限