是否可以通过objective C在Facebook中动态创建多个相册,这样我们每次上传某些图片时都有相册的文本定义?
我们正在使用的当前代码如下:
for (UIView *view in scrollView.subviews)
{
if (view.tag == IMAGE_VIEW_TAG) {
NSData *attachmentData = [self getImageData:view];
UIImage *img = [UIImage imageWithData:attachmentData];
FBRequest *photoUploadRequest = [FBRequest requestForUploadPhoto:img];
[photoUploadRequest startWithCompletionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
}];
NSLog(@"This is Image");
}
if (view.tag == TEXT_VIEW_TAG)
{
NSString *message = @""
message = [self getTextData:view];
NSLog(@"mesage values %@",message);
NSMutableDictionary* params = [[NSMutableDictionary alloc] initWithObjectsAndKeys:message, @"message",nil]; [FBRequest startWithGraphPath:@"me/feed" 参数:params HTTPMethod:@"POST" completionHandler:^(FBRequestConnection *connection, id result, NSError *error){