Facebook帖子分享弹出窗口

时间:2012-07-31 09:36:45

标签: objective-c ios facebook share

我想将我的iOS应用程序中的一些内容分享给用户的Facebook墙。 我能够提供官方登录webview,但我想知道如何在用户成功登录后呈现这种视图......

enter image description here

1 个答案:

答案 0 :(得分:0)

创建Facebook实例后,我们称之为_facebook。您调用以下方法

NSMutableDictionary paramters = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"<app id>", @"app_id", @"http://...", @"picture", nil];

[_facebook dialog:@"feed" andParams:parameters andDelegate:self];

参数可以在这里找到:

https://developers.facebook.com/docs/reference/dialogs/feed/

相关问题