Posting On facebook friends wall [closed]

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                   @"Friend FB id", @"to",
                                   @"Say Hello",  @"message",
                                   @"Your Descriptive message", @"description",
                                   @"Your link", @"link",
                                   @"Your photo link", @"picture",
                                   @"Facebook app id",@"app_id"
                                   @"feed",@"method"
                                   nil];

Prepare Dictionary with These much Parameter and Then Call Method

[FBWebDialogs presentFeedDialogModallyWithSession:session//[FBSession activeSession]
                                           parameters:params
                                              handler:
         ^(FBWebDialogResult result, NSURL *resultURL, NSError *error){
}];

Make sure that Before calling this your facebook Session should be valid.

Browse More Popular Posts

Leave a Comment