通过 iOS 应用程序读取邮箱或用户节点

Reading Mailbox or user nodes through iOS app

为什么这段代码在获取收件箱时出错

FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                              initWithGraphPath:@"/me/inbox"
                              parameters:@{@"fields":@"inbox"}
                              HTTPMethod:@"GET"];

控制台出错:

{
    code = 100;
    message = "You can only access the \"inbox\" connection for the current user.";
}

如果我使用此代码获取收件箱,它会为我获取收件箱:

FBSDKGraphRequest *request =[[FBSDKGraphRequest alloc] initWithGraphPath:@"me"
                                                          parameters:@{ @"fields" : @"inbox"}];

想通了不能传递param中的字段

FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                              initWithGraphPath:@"/me/inbox?limit=50"
                              parameters:nil    
                              HTTPMethod:@"GET"];