2013-07-11 45 views
1

當我顯示飼料對話框給用戶,我遇到一個小問題,那裏的旁邊顯示「通過[APP NAME問號]「對話框的一部分。問號旁邊的「通過[APP NAME]」 Facebook的iOS版訂閱對話框

Question mark

我不知道這是我的結束一個錯誤,或者如果這是Facebook的只是如何顯示對話框。我的代碼顯示如下:

- (bool) PostToWallWithDialog:(NSString*)a_pMessage 
{ 
    NSMutableDictionary *params = [self GetParams]; 

    // Invoke the dialog 
    [FBWebDialogs presentFeedDialogModallyWithSession:nil 
              parameters:params 
               handler: 
    ^(FBWebDialogResult result, NSURL *resultURL, NSError *error) { 
     if (error) { 
      // Error launching the dialog or publishing a story. 
      NSLog(@"Error publishing story."); 
     } else { 
      if (result == FBWebDialogResultDialogNotCompleted) { 
       // User clicked the "x" icon 
       NSLog(@"User canceled story publishing."); 
      } else { 
       // Handle the publish feed callback 
       NSDictionary *urlParams = [self ParseURLParams:[resultURL query]]; 
       if (![urlParams valueForKey:@"post_id"]) { 
        // User clicked the Cancel button 
        NSLog(@"User canceled story publishing."); 
       } else { 
        // User clicked the Share button 
        NSString *msg = [NSString stringWithFormat: 
             @"Posted story, id: %@", 
             [urlParams valueForKey:@"post_id"]]; 
        NSLog(@"%@", msg); 
        // Show the result in an alert 
        [[[UIAlertView alloc] initWithTitle:@"Result" 
               message:msg 
               delegate:nil 
             cancelButtonTitle:@"OK!" 
             otherButtonTitles:nil] 
         show]; 
       } 
      } 
     } 
    }]; 

    return true; 
} 

- (NSMutableDictionary*) GetParams 
{ 
    // TODO: Externalize these strings 
    return [NSMutableDictionary dictionaryWithObjectsAndKeys: 
       @"App Name", @"name", 
       @"Caption goes here!", @"caption", 
       @"Description goes here!", @"description", 
       @"http://example.org", @"link", 
       @"https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png", @"picture", 
       nil]; 
} 

任何方式讓圖像消失?

+0

您的應用程序設置中是否填充了16x16圖標設置? –

+0

@JimRubenstein必須這樣!我沒有在文檔中看到它。你可以把它放在答案中,我可以接受它嗎? –

回答

2

確保您在應用程序設置中填充了16x16圖像