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



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

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.";
}

where as if如果我使用这段代码来获取收件箱,它会获取收件箱:

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

发现不能传递参数

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

相关内容

  • 没有找到相关文章

最新更新