iOS Facebook应用程序请求对话框始终发送无摩擦请求
我正在开发一个游戏,它使用Facebook SDK和web对话框来显示好友选择器和发送应用程序请求 问题是:当我第一次向某人发送请求时,请求在发送时没有显示确认对话框 有人能提出这种行为的原因吗 请查找下面的代码iOS Facebook应用程序请求对话框始终发送无摩擦请求,ios,facebook,apprequests,Ios,Facebook,Apprequests,我正在开发一个游戏,它使用Facebook SDK和web对话框来显示好友选择器和发送应用程序请求 问题是:当我第一次向某人发送请求时,请求在发送时没有显示确认对话框 有人能提出这种行为的原因吗 请查找下面的代码 SBJsonWriter *writer = [SBJsonWriter new]; NSMutableDictionary *data = [NSMutableDictionary dictionaryWithObjectsAndKeys:
SBJsonWriter *writer = [SBJsonWriter new];
NSMutableDictionary *data = [NSMutableDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithInt:kGiftHearts], @"type",
@-1, @"gate",
nil];
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
[writer stringWithObject:data], @"data",
nil];
[FBWebDialogs
presentRequestsDialogModallyWithSession:[PFFacebookUtils session]
message:[NSString stringWithUTF8String:STR_GIFT_MESSAGE]
title: [NSString stringWithUTF8String:STR_GIFT_TITLE]
parameters:params
handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error) {
if (error) {
(target->*failure)(target);
} else {
(target->*success)(target);
}
}];
您是否曾经在过去的任何时候向该用户发送过该应用程序id的无摩擦请求?甚至可以通过你的fb应用程序的网络版本?不,它向我以前没有发送过任何消息的用户发送无摩擦请求。