发布到朋友的墙壁Facebook iOS SDK 3.1

时间:2013-02-05 16:28:07

标签: ios facebook facebook-graph-api ios6 facebook-ios-sdk

根据Facebook开发者路线图(https://developers.facebook.com/roadmap/),他们说除了使用Feed对话框之外我们无法发布到朋友墙,但iOS SDK 3.1上不推荐使用Feed对话框

哪种情况更适合我的情况?我需要用户从他的朋友列表中进行选择,然后将链接发布到他们的墙上。

提前致谢

2 个答案:

答案 0 :(得分:1)

您可以使用Feed对话框。我认为FB将不得不保持这种状态。我的应用程序现在正在使用它们。

https://developers.facebook.com/docs/howtos/feed-dialog-using-ios-sdk/

- (IBAction)publishButtonAction:(id)sender {
    // Put together the dialog parameters
    NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                   @"Facebook SDK for iOS", @"name",
                                   @"Build great social apps and get more installs.", @"caption",
                                   @"The Facebook SDK for iOS makes it easier and faster to develop Facebook integrated iOS apps.", @"description",
                                   @"https://developers.facebook.com/ios", @"link",
                                   @"https://raw.github.com/fbsamples/ios-3.x-howtos/master/Images/iossdk_logo.png", @"picture",
                                   nil];

    // Invoke the dialog
    [self.facebook dialog:@"feed" andParams:params andDelegate:self];

    // (here's another typical example of how to call that...)
    [FBWebDialogs presentFeedDialogModallyWithSession:
            YourFBSessionClass.activeSession
            parameters: params
            handler: nil];
}

答案 1 :(得分:0)

查看我的问题Post to Friends wall on Facebook failed with Social Framework in iOS 6

我最后通过电子邮件使用他的facebook用户名(username@facebook.com)向facebook朋友发送消息

相关问题