使用ios facebook SDK 3.1发布在墙上

时间:2012-12-11 06:17:12

标签: ios facebook-ios-sdk

在我的ios应用程序中,我想使用facebook SDK 3.1在用户墙上发布。 另外我想尽可能避免使用权限。

1 个答案:

答案 0 :(得分:3)

使用Graph API 来自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];