iOS アプリケーションから、私が管理者ではないファン ページに写真を投稿したいと考えています。私はそのコードでうまくやっています:
NSData* imageData = UIImageJPEGRepresentation(image_, 90);
NSMutableDictionary * params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"hello", @"message",
imageData, @"source",
accessToken, @"access_token",
nil];
[FBRequestConnection startWithGraphPath:@"{pageID}/photos"
parameters:params
HTTPMethod:@"POST"
completionHandler:^(FBRequestConnection *connection, id result, NSError *error)
{
DLog(@"error %@",error);
DLog(@"result %@",result);
}];
でも今、その写真がファンページの特定のアルバムに来るようにしたい。Path: {albumID}/photos のように「albumId」を指定しようとしました。それは正しく投稿されますが、私のウォールにはファン ページのアルバムにはありません。