title: How to publish from iOS application to facebook wall without user amending message
body: <p>I'm writing an iPhone game and want to publish the user's score to their facebook feed.</p>
  
  <p>I've managed to knock together an example where the user agrees with the authorisation and then a dialog appears which they can confirm to publish on their wall, or not publish.  This is almost ideal, except that the text is an editable field - so the user could amend their score and then publish.  Ideally, I want the exact same mechanism, but <strong>without the ability to amend the message</strong>.</p>
  
  <p>I'm assuming to do this, I would need to ask publish_stream permissions, followed by a Graph api call to post the message.  I sourced this, but get an error 'An active access token must be used to query information about the current user.'.</p>
  
  <p>I'll happily take a point in the right direction over the actual code change - any help much appreciated.</p>
  
  <p>This is my first stackOverflow post, so be gentle please.</p>
  
  <p>Thanks guys.</p>
  
  <p>-Duncan</p>
  
  <p>Original code (which publishes to wall but with amendable textbox)</p>
  
  <pre><code> //offer to facebook connect your score
   facebook = [[Facebook alloc] initWithAppId:@"210645928948875"];
   [facebook authorize:nil delegate:self];
  
   NSMutableString *facebookMessage = [NSMutableString stringWithString:@"I scored a whopping "];
   [facebookMessage appendString: [NSMutableString stringWithFormat:@"%d", currentScore]];
   [facebookMessage appendString: [NSMutableString stringWithString:@".  Can you beat me?"]];
  
   NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
   @"210645928948875", @"app_id",
   @"http://duncan.co.uk/", @"link",
   @"http://d.yimg.com/gg/goran_anicic/dunc.jpeg", @"picture",
   @"dunc", @"name",
   //@"Reference Documentation", @"caption",
   @"Download the app NOW from the App Store", @"description",
   facebookMessage,  @"message",
   nil];
  
   [facebook dialog:@"stream.publish" andParams:params andDelegate:self];
  </code></pre>
  
  <p>Code to publish direct to wall (not proved) (which raises active token error):</p>
  
  <pre><code>/*Facebook Application ID*/
  NSString *client_id = @"210645928948875";
  
  //alloc and initalize our FbGraph instance
  self.fbGraph = [[FbGraph alloc] initWithFbClientID:client_id];
  
  //begin the authentication process..... andExtendedPermissions:@"user_photos,user_videos,publish_stream,offline_access"
  [fbGraph authenticateUserWithCallbackObject:self andSelector:@selector(fbGraphCallback:) andExtendedPermissions:@"user_photos,user_videos,publish_stream,offline_access"];  
  
  NSMutableDictionary *variables = [NSMutableDictionary dictionaryWithCapacity:4];
  
  [variables setObject:@"the message" forKey:@"message"];
  [variables setObject:@"http://duncan.co.uk" forKey:@"link"];
  [variables setObject:@"bold copy next to image" forKey:@"name"];
  [variables setObject:@"plain text score." forKey:@"description"];
  
  FbGraphResponse *fb_graph_response = [fbGraph doGraphPost:@"me/feed" withPostVars:variables];
  NSLog(@"postMeFeedButtonPressed:  %@", fb_graph_response.htmlResponse);
  </code></pre>