如何让某人通过 Facebook API 在他/她朋友的墙上发帖,类似于 instagr.am iPhone 应用程序可以让你在自己的墙上发帖?
碰巧,Facebook 提供了可用的 iOS SDK,以及如何使用它来发布提要项目的说明(通过交互式对话框或使用其 Graph API)。
我就是这样做的。它工作得很好..你也可以为多个朋友发帖。
NSMutableDictionary* params1 = [NSMutableDictionary dictionaryWithObjectsAndKeys:
<appId>, @"api_key",
@"Happy Birthday....", @"message",
@"http://www.youtube.com/watch?v=wFh-rX_Sfhs", @"link",
@"http://www.99desi.com/wp-content/uploads/2011/03/Happy-Birthday.jpg", @"picture",
@"Many More Happy returns Of the Day...", @"name",
@" Believing hear, what you deserve to hear..", @"description",nil];
[facebook requestWithGraphPath:@"<frnd-ID>/feed" andParams:params1 andHttpMethod:@"POST" andDelegate:self];
您可以重复上述步骤将相同内容发布给多个朋友。
希望对你有帮助...