我正在尝试使用 Facebook iOS SDK 向我的 FB 朋友发送评论。
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:[[_usersFB valueForKey:@"selectValue"] componentsJoinedByString:@","], @"to",
nil];
[FBWebDialogs
presentRequestsDialogModallyWithSession:nil
message:@"Test Comment"
title:nil
parameters:params
handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error) {
if (error) {
// Error launching the dialog or sending the request.
NSLog(@"Error sending request.");
} else {
if (result == FBWebDialogResultDialogNotCompleted) {
// User clicked the "x" icon
NSLog(@"User canceled request.");
} else {
// Handle the send request callback
}
}
}];
我正在使用 FB SDK v3.5.3。
我在 FBDialog 中看到所有朋友,但是当我点击发送按钮时,回调不会返回错误,假设它有效但我选择的朋友没有收到任何东西。
仅供参考 - 我的 FB 应用程序未处于沙盒模式。
任何指针将不胜感激。
干杯