Post a photo to an Album on a Facebook fan page without being the admin,

自闭症网瘾萝莉.ら 提交于 2019-12-08 02:36:16

问题


From my iOS application, i would like to post a photo to a fan page where i am not the admin. I am doing well with that code:

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);
 }];

But now, i want to that photo comes to a specific album of the fan page. I tried to specify the "albumId" like at the Path: {albumID}/photos. It post it correctly but to my wall an not in a album of the fan page.

来源:https://stackoverflow.com/questions/19228423/post-a-photo-to-an-album-on-a-facebook-fan-page-without-being-the-admin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!