为什么这段代码在获取收件箱时会出现错误
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"];