我想发送应用程序请求给用户的facebook好友。我使用的是facebook-ios-sdk 3.1.1框架。的确有
[FBNativeDialogs presentShareDialogModallyFrom:self.parentViewController initialText:@"Some text..." image:nil url:[NSURL URLWithString:@"www.apple.com"] handler:nil];但是这会显示提要的对话框&而不是应用请求的对话框。而FBWebDialogs在SDK3.1.1中没有。框架。
有没有其他方法可以做到这一点?
任何帮助都是非常感谢的。
谢谢,
Sayali
发布于 2013-05-13 21:20:47
尝试以下代码:
[FBWebDialogs presentRequestsDialogModallyWithSession:[PFFacebookUtils session]
message:@"Check this app" title:nil parameters:params handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error) {
if (error) {
// Case A: Error launching the dialog or sending request.
} else {
if (result == FBWebDialogResultDialogNotCompleted) {
//Case B: User clicked the "x" icon
} else {
//Case C: Dialog shown and the user clicks Cancel or Send
}
}
}];发布于 2014-02-25 14:57:22
试试这个:
[FBWebDialogs
presentRequestsDialogModallyWithSession:nil
message:@"Learn how to make your iOS apps social."
title:nil
parameters:nil
handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error) {}
];https://stackoverflow.com/questions/16522232
复制相似问题