2012-10-26 43 views
0

如何自定義共享對話框文本(請參閱圖像)?我正在使用下面的代碼來分享文本。但是我得到了像圖像那樣的空盒子。這個怎麼做?可能嗎?提前致謝。如何自定義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

+0

我似乎記得讀取預填充該字段是不允許的。 – NappingRabbit

回答

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