【问题标题】:Post to friend's wall Facebook iOS SDK 3.1发布到朋友的墙 Facebook iOS SDK 3.1
【发布时间】:2013-01-20 15:42:57
【问题描述】:

根据 Facebook 开发者路线图 (https://developers.facebook.com/roadmap/),他们说我们无法在朋友墙上发帖,除非使用提要对话框,但提要对话框在 iOS SDK 3.1 上已弃用

就我而言,哪种方法更好?我需要一个用户从他的朋友列表中选择,然后将链接发布到他们的墙上。

提前致谢

【问题讨论】:

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


    【解决方案1】:

    您可以使用提要对话框。我认为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];
    }
    

    【讨论】:

      【解决方案2】:

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

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多