title: How to post a message with attachment in Facebook?
body: <p>I am trying to post a string message on Facebook, but it only posts message type by user not the attachment string. How can I do it ?</p>
  
  <pre><code>- (void)postToWall {
  
  FBStreamDialog* dialog = [[[FBStreamDialog alloc] init] autorelease];
  dialog.delegate = self;
  NSString *joke = @"Hello i am happy";
  dialog.userMessagePrompt = @"Enter your message:";
  
  dialog.attachment = [NSString stringWithFormat:@"{\"name\":,\"%@ Posted Message!}",
                       facebookName, joke];
  
  [dialog show];
  </code></pre>
  
  <p>}</p>