我如何获得刚刚上传的图片的隐私设置?

How i can get the privacy setting of a just uploaded picture?

在我的应用程序中,我有这段代码可以在我的 facebook 墙上分享一张照片:

-(void)PictureShare{
    NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"Appname",  @"message", nil];
    [params setObject:MyPicture forKey:@"source"];

    [FBRequestConnection startWithGraphPath:@"me/photos"
                                 parameters:params
                                 HTTPMethod:@"POST"
                          completionHandler:^(FBRequestConnection *connection,
                                              id result,
                                              NSError *error)
     {
         if (error)
         {
             //showing an alert for failure
         }
         else
         {
             //showing an alert for success
         }
     }];
}

此方法正常,但我想知道我刚刚上传的图片的隐私设置,它在 "Public"、"Only friends" 或 "Only me" 中共享?。我该怎么办?结果字典 returns 只有 post_it 和 photo_id。

您使用 privacy 参数设置隐私。来自 documentation:

Determines the privacy settings of the photo. If not supplied, this defaults to the privacy level granted to the app in the Login Dialog. This field cannot be used to set a more open privacy setting than the one granted.