1

在我的 ios 应用程序中,我想使用 facebookSDK 3.1 在用户墙上发布。此外,如果可能,我想避免使用权限。

4

1 回答 1

3

使用来自http://developers.facebook.com/docs/reference/dialogs/feed/的 GraphAPI

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];
于 2012-12-11T06:55:21.163 回答