ユーザーにフィード ダイアログを表示すると、ダイアログの「[APP NAME] 経由」部分の横に疑問符が表示される小さな問題が発生します。
それが私の側のエラーなのか、それとも 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];
}
そのイメージをなくす方法はありますか?