I'm trying to send Facebook app requests using the Facebook iOS SDK using the built-in request dialog. The requests are sent without problems, but there are issues in the dialog which I'm getting, in the screenshot below:
As you can see, it is very different from the Request dialogs shown in the Facebook documentation section, and the request dialogs I see in other iOS apps:
(source: akamaihd.net)
- Cancel and Send buttons are broken (they work, but look very weird)
- It's not showing the request preview unless I set the 'to' parameter
- 'title' parameter is ignored
This is the code I'm using to display the requests dialog:
params[@"data"] = [[NSString alloc] initWithData:[NSJSONSerialization dataWithJSONObject:@{@"q" : NSInt(question.ID)} options:0 error:nil] encoding:NSUTF8StringEncoding];
[FBWebDialogs presentRequestsDialogModallyWithSession:[FBSession activeSession]
message:@"THIS IS A MESSAGE"
title:@"THIS IS A TITLE"
parameters:params
handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error) {
if (error) {
// Case A: Error launching the dialog or sending request.
NSLog(@"Error sending request.");
} else {
if (result == FBWebDialogResultDialogNotCompleted) {
// Case B: User clicked the "x" icon
NSLog(@"User canceled request.");
} else {
NSLog(@"Request Sent. %@", params);
}
}}];
I'm using Facebook iOS SDK 3.9.0. Anybody else experienced anything like this? Am I doing something wrong?
Any help is appreciated, thanks in advance.