2

我在我的 iphone 应用程序中使用 Facebook SDK。我可以上传带有标题的照片。 我按照这个例子: http: //www.icodeblog.com/2011/03/28/facebook-sdk-posting-to-user-news-feed/

我就是这样做的

- (IBAction) btnPostPress:(id) sender {

//[self.txtCaption resignFirstResponder];

//we will release this object when it is finished posting
FBFeedPost *post = [[FBFeedPost alloc] initWithPhoto:[UIImage imageNamed:@"test.png"] name:@"testing @ work"];
[post setCaption:@"Test"];
[post publishPostWithDelegate:self];

IFNNotificationDisplay *display = [[IFNNotificationDisplay alloc] init];
display.type = NotificationDisplayTypeLoading;
display.tag = NOTIFICATION_DISPLAY_TAG;
[display setNotificationText:@"Posting Photo..."];
[display displayInView:self.view atCenter:CGPointMake(self.view.center.x, self.view.center.y-100.0) withInterval:0.0];
[display release];

}

但问题是,当我上传超过 3,4 张照片时,它会自动使用我的应用程序名称创建一个相册。然后照片上传到该相册(不喜欢状态更新

但我希望每张照片都单独张贴在墙上。例如:如果我上传 5 张照片,那么应该有 5 张特定照片的状态更新

4

0 回答 0