如何制作一些相册Facebook SDK iOS?
我发布了一些照片至Facebook,例如:如何制作一些相册Facebook SDK iOS?
for (int idx = 0 ; idx < 5; idx++){ [FBRequestConnection startWithGraphPath: @"me/photos"
parameters: params
HTTPMethod: @"POST"
completionHandler: ^(FBRequestConnection *connection,
id result,
NSError *error) {
[self requestCompleted:connection withResult:result andError:error];
}];
}
这个照片发表在默认相册给Facebook(APPNAME照片)。如何在当前迭代中创建新相册?
回答:
我解决我的问题,我需要这个字符串:
NSMutableDictionary *paramsToCreateAlbum = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"album ", @"name",
@"description", @"message", nil];
[FBRequestConnection startWithGraphPath: @"me/albums"
parameters: paramsToCreateAlbum
HTTPMethod: @"POST"
completionHandler: ^(FBRequestConnection *connection,
id result,
NSError *error) {
if (!error) {
//publish content to albumID
[self publishContentToAlbum:[result objectForKey:@"id"]];
}
else {
NSLog(@"error: %@", error);
}
}];
以上是 如何制作一些相册Facebook SDK iOS? 的全部内容, 来源链接: utcz.com/qa/258409.html