Tag: facebook graph api

通过普通的非pipe理员用户通过iOS应用发布照片到Facebook粉丝页面

我正在尝试将照片发布到我的应用程序Facebook粉丝页面以及用户墙上。 我已经成功地将照片发布到用户墙上,但未能将其发布在粉丝页面墙上。 ( 用户不一定是pipe理员或页面所有者,只是普通用户,因为粉丝页面有任何人可以发布的选项,用户甚至不喜欢页面,对吗? ) 谷歌search一下后,我find了答案 。 据此,我需要一个粉丝页面的access_token和一个album_id来这样做。 但我找不到有关如何得到它们的线索。 到目前为止,我已经试过这个代码: if ([appDelegate.facebook isSessionValid]) { NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: resultImage, @"picture", nil]; [appDelegate.facebook requestWithGraphPath:@"me/photos" andParams:params andHttpMethod:@"POST" andDelegate:self]; // to post on users wall, works fine NSString *path = [NSString stringWithFormat:@"my/accounts /fan_page_id?fields=access_toke/photos"]; [appDelegate.facebook setAccessToken: FACEBOOK_ACCESS_TOKEN]; [appDelegate.facebook requestWithGraphPath:path andParams:params andHttpMethod:@"POST" andDelegate:self]; // to post on fan page […]