0
到時間線我想從我的iPhone應用程序發送一些照片給我的Facebook牆上:郵相冊使用Facebook的iOS版SDK
for (int i=0; i<_pageImages.count; i++) {
UIImage *img = [self.pageImages objectAtIndex:i];
NSMutableDictionary* params = [[NSMutableDictionary alloc] init];
[params setObject:@"my custom message" forKey:@"message"];
[params setObject:img forKey:@"picture"];
[self performPublishAction:^{
[FBRequestConnection startWithGraphPath:@"me/photos" parameters:params HTTPMethod:@"POST"
completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
[self showAlert:@"Photo med text Post" result:result error:error];
}];
}];
}
的代碼,你在代碼中看到Alert'll完全有效,但顯示_pageImages.count
時間。我可以很容易地刪除它。
我認爲這可能是更好的方式發佈照片列表。你可以幫幫我嗎?
我很欣賞你的幫助。很快我會檢查它並回復。 – Ali