【问题标题】:Post to friend's wall Facebook iOS SDK 3.1发布到朋友的墙 Facebook iOS SDK 3.1
【发布时间】:2013-01-20 15:42:57
【问题描述】:
【问题讨论】:
标签:
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];
}