贴到朋友墙Facebook iOS SDK 3.1
问题描述:
根据Facebook开发人员路线图(https://developers.facebook.com/roadmap/),他们说我们将无法发布到Friend Wall,除了使用Feed对话框,但Feed SDK对iOS SDK不赞成使用3.1贴到朋友墙Facebook iOS SDK 3.1
在我的情况下,哪种方式更好?我需要一个用户从他的朋友列表中选择,然后发布一个链接到他们的墙上。
在此先感谢
答
看一看我的问题Post to Friends wall on Facebook failed with Social Framework in iOS 6
我通过发送邀请函使用他的Facebook用户名([email protected])通过电子邮件给Facebook好友的消息最终
答
你可以使用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];
}
+0
这是否也适用于朋友? –
要去尝试它,我让你知道!谢谢 – hardlinkin