0

如何自定义分享对话框文本(见图)?我正在使用下面的代码来分享文本。但是我得到了像图像一样的空盒子。这个怎么做?可能吗?提前致谢。

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                               @"Test name", @"name",
                               @"Test caption", @"caption",
                               @"Test Description", @"description",
                               @"http://www.facebook.com", @"link",
                               @"", @"picture",
                   @"Test Message", @"message",
                               nil];


[[delegate facebook] dialog:@"feed"
                  andParams:params
                andDelegate:self];

在此处输入图像描述

4

1 回答 1

1

https://developers.facebook.com/docs/reference/dialogs/feed/

似乎表明你做对了。

给出的示例用于提要对话框

NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
kAppId, @"app_id",
@"https://developers.facebook.com/docs/reference/dialogs/", @"link",
@"http://fbrell.com/f8.jpg", @"picture",
@"Facebook Dialogs", @"name",
@"Reference Documentation", @"caption",
@"Using Dialogs to interact with users.", @"description",
nil];

[_facebook dialog:@"feed" andParams:params andDelegate:self];
于 2012-10-26T21:02:21.710 回答