0

我编写 iphone 应用程序,我想在我的 facebook 墙上发帖,我使用 facebook SDK 3.2 for ios。有谁知道我是怎么做的。谢谢你。

4

1 回答 1

0
- (void) postWall:(NSString *)caption:(NSString *)description:(NSString *) name:(NSString *)link{



    NSMutableDictionary *postParams = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                       name, @"name",
                                       caption, @"caption",
                                       description, @"description",
                                      link,@"link",

                                       nil];

    [FBRequestConnection startWithGraphPath:@"me/feed"
                                 parameters:postParams
                                 HTTPMethod:@"POST"
                          completionHandler:^(FBRequestConnection *connection,
                                              id result,
                                              NSError *error){}

     ];


}
于 2013-03-27T14:48:50.677 回答