-6

Can anybody tell me how to post on facebook friends wall using Facebook SDK 3.2 or 3.5??

Thanks in advance.

Popeye
  • 11,839
  • 9
  • 58
  • 91
Rocks
  • 47
  • 1
  • 4
  • 1
    What have you tried? This question shows little to no research. Questions that show little to no research aren't good questions. Please provide us with what you have looked at or some code that you have tried. Help us help you. -1 – Popeye Jun 05 '13 at 12:41
  • 1
    Have you looked at: http://stackoverflow.com/questions/7685970/how-to-post-message-on-facebook-friends-wall-in-iphone, http://stackoverflow.com/questions/10209217/facebook-api-post-message-on-friends-wall, http://stackoverflow.com/questions/10172662/post-message-on-friends-facebook-wall-post, http://stackoverflow.com/questions/10773030/facebook-api-post-on-friend-wall – Aziz Shaikh Jun 05 '13 at 12:42
  • Yep, that is a question of [pure greatness](http://twilight.ponychan.net/chan/files/src/136795371879.gif) – Groot Jun 05 '13 at 12:45

1 Answers1

4
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.

Maheta Dhaval K
  • 764
  • 6
  • 19