Search code examples
iosfacebook-ios-sdk

Post on wall using ios facebook SDK 3.1


In my ios app I want to post on the user wall using facebookSDK 3.1. in addition i would like to avoid using permissions if posible.


Solution

  • Using GraphAPI From http://developers.facebook.com/docs/reference/dialogs/feed/

    NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                   kAppId, @"app_id",
                                   @"http://developers.facebook.com/docs/reference/dialogs/", @"link",
                                   @"http://fbrell.com/f8.jpg", @"picture",
                                   @"Facebook Dialogs", @"name",
                                   @"Reference Documentation", @"caption",
                                   @"Dialogs provide a simple, consistent interface for apps to interact with users.", @"description",
                                   @"Facebook Dialogs are so easy!",  @"message",
                                   nil];
    
    [_facebook dialog:@"feed" andParams:params andDelegate:self];