嗨,我正在尝试向我的 facebook 朋友执行应用请求。我尝试了以下代码来发送应用邀请:
SBJSON *jsonWriter = [[SBJSON new] autorelease];
NSDictionary *testingDic = [NSDictionary dictionaryWithObjectsAndKeys:
@"5", @"wow",
@"1", @"testing",
nil];
NSString *testStr = [jsonWriter stringWithObject:testingDic];
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"Learn how to make your iOS apps invite.", @"message",
@"Check this out", @"notification_text",
testStr, @"data",
nil];
AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
[[delegate facebook] dialog:@"apprequests"
andParams:params
andDelegate:self];
我可以看到上面的代码执行没有错误,但是我没有从 Facebook 获得请求 ID 作为响应,而且我在 Facebook 中看不到我的应用程序请求。
请帮帮我。