title: Facebook iOS SDK - Sending a facebook user an app request
body: <p>Im trying to send an app request through facebook using the facebook iOS SDK, im using the following code:</p>
  
  <pre><code>NSString *message = [[NSString alloc] initWithFormat:@"blah blah blah"];
  NSString *data = [[NSString alloc] initWithFormat:@"blah blah blah"];
  
  NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:message, @"message", data, @"data", nil];
  [_facebook requestWithGraphPath:[NSString stringWithFormat:@"%@/apprequests",userID] andParams:params andHttpMethod:@"POST" andDelegate:self];
  
  [message release];
  [data release];
  </code></pre>
  
  <p>This gives me the following error:</p>
  
  <pre><code>Error: Error Domain=facebookErrDomain Code=10000 "The operation couldn’t be completed. (facebookErrDomain error 10000.)" UserInfo=0x788c5b0 {error=&lt;CFBasicHash 0x788c080 [0x1bf53e0]&gt;{type = mutable dict, count = 2,
  entries =&gt;
      2 : &lt;CFString 0x788b560 [0x1bf53e0]&gt;{contents = "type"} = &lt;CFString 0x788c3f0 [0x1bf53e0]&gt;{contents = "OAuthException"}
      3 : &lt;CFString 0x788c560 [0x1bf53e0]&gt;{contents = "message"} = &lt;CFString 0x788c480 [0x1bf53e0]&gt;{contents = "(#200) Invalid Request: There was a problem with the parameters of the request. Body of an error/warning message. Title is: Invalid Request"}
  }
  </code></pre>
  
  <p>So has anyone been successful with this, or do you know of a way to send a request to a facebook user using the facebook iOS SDK?</p>
  
  <p>Thanks</p>