I just downloaded the Facebook SDK for iOS because I need to be able to publish custom threads for custom Facebook feeds. The sample application has a method called publishStream: (id) the sender that appears to be setting up a custom description for the Publish Stream dialog box, but when my dialog appears, all I see is an empty dialog to start typing . The code in the sample is as follows:
`SBJSON * jsonWriter = [[SBJSON new] autorelease];
NSDictionary* actionLinks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys: @"Always Running",@"text",@"http://itsti.me/",@"href", nil], nil]; NSString *actionLinksStr = [jsonWriter stringWithObject:actionLinks]; NSDictionary* attachment = [NSDictionary dictionaryWithObjectsAndKeys: @"a long run", @"name", @"The Facebook Running app", @"caption", @"it is fun", @"description", @"http://itsti.me/", @"href", nil]; NSString *attachmentStr = [jsonWriter stringWithObject:attachment]; NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"Share on Facebook", @"user_message_prompt", actionLinksStr, @"action_links", attachmentStr, @"attachment", nil]; [_app.facebook dialog:@"feed" andParams:params andDelegate:self];`
Should this code populate the user stream? If so, why is this not a demo project for me? If not, what steps do I need to take to populate the stream with user data?
Thank you for your help,
source share