“通过[APP NAME]”Facebook iOS Feed对话框旁边的问号

时间:2013-07-11 20:36:42

标签: facebook facebook-ios-sdk

当我向用户显示提要对话框时,我遇到了一个小问题,其中对话框的“通过[APP NAME]”部分旁边显示了问号。

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];
}

任何可以让图像消失的方法?

1 个答案:

答案 0 :(得分:2)

确保在应用程序设置中填充16x16图像