发贴到朋友的Facebook Facebook iOS SDK 3.1 [英] Post to friend's wall Facebook iOS SDK 3.1

查看:132
本文介绍了发贴到朋友的Facebook Facebook iOS SDK 3.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

According to Facebook Developer Roadmap (https://developers.facebook.com/roadmap/), they are saying that we won't be able to post to a Friend Wall except using the Feed Dialog, but feed dialog is deprecated on iOS SDK 3.1

哪个是在我的情况下更好的方式去我需要一个用户从他的朋友列表中选择,然后发布一个链接到他们的墙上。

Which is the better way to go in my case? I need a User to select from his friend list, and then post a link to their wall.

提前感谢

推荐答案

可以使用feed对话框。我认为FB将不得不保持这一切。我的应用程序现在正在使用它们。

You can use feed dialog. I think FB is going to have to keep this around. My apps are using them fine right now.

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];
}

这篇关于发贴到朋友的Facebook Facebook iOS SDK 3.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆