我在我的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张照片时,它会自动创建一个带有我的应用程序名称的相册。此时,照片会上传到该相册( NOT LIKE状态更新)
但我希望每张照片都可以单独张贴在墙上。例如:如果我上传5张照片,那么应该有5张特定照片的状态更新。