0

Facebook SDK 3.5 では、次のコードを使用してアプリ リクエストを送信しようとしています。

Facebook アプリの設定

リスト設定

    NSMutableDictionary* params =  [NSMutableDictionary dictionaryWithObjectsAndKeys:nil];

[FBWebDialogs presentRequestsDialogModallyWithSession:nil
                                                          message:@"Join"
                                                            title:nil
                                                       parameters:params
                                                          handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error)
             {
                 if (error)
                 {
                     NSLog(@"request error");
                 }
                 else
                 {
                     if (result == FBWebDialogResultDialogNotCompleted)
                     {
                         NSLog(@"request FBWebDialogResultDialogNotCompleted");
                     }
                     else if([[resultURL description] hasPrefix:@"fbconnect://success?request="])
                     {
                         // Facebook returns FBWebDialogResultDialogCompleted even user
                         // presses "Cancel" button, so we differentiate it on the basis of
                         // url value, since it returns "Request" when we ACTUALLY
                         // completes Dialog
                         NSLog(@"request success");
                     }
                     else
                     {
                         // User Cancelled the dialog
                         NSLog(@"request cancelled");
                     }
                 }
             }
             ];

上記のコードを Facebook のサンプル FacebookAppID,URL types,FacebookDisplayName で使用すると、正常に動作します。

しかし、自分の acebookAppID,URL types,FacebookDisplayName を指定すると、通知は配信されませんでした。どんな助けでも感謝します....

4

2 に答える 2

1

I have configured "App on Facebook" and "Native iOS App" configurations in settings, Now the notifications are being delivered to iOS and Web App(facebook).

If the notifications are not being delivered to iOS Goto App--> Edit Settings--> App Details and change the category to games/business according to your need. Now the notifications will be delivered to your Desktop Facebook as well as iOS.

I have tried "Native Android App" configurations as well to deliver my notifications to desktop,iOS and android,but no luck as of now. I think there is a problem with android settings.please let me know if anyone have the answer.

于 2013-06-18T11:09:43.413 に答える