如何在facebook共享框中自定义文本(见图)?

时间:2012-10-26 14:18:51

标签: iphone ios facebook

如何自定义共享对话框文本(请参阅图像。)?我使用下面的代码分享文本。但我像图像一样得到了空盒子。这该怎么做?可能吗?提前谢谢。

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

enter image description here

1 个答案:

答案 0 :(得分: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];