title: Getting the relevant error message using .net SDK
body: <p>I'm using Facebook ads api SDK for .net (<a href="http://www.nuget.org/packages/Facebook/6.4.2" rel="nofollow">http://www.nuget.org/packages/Facebook/6.4.2</a>) and when I catch an error, the message is always the same general error in the exception message object:</p>
  
  <blockquote>
    <p>(FacebookApiException - #100) Invalid parameter</p>
  </blockquote>
  
  <p>It happens since I moved to the versioned calls (v2.2) - before that I used the unversioned calls and it was fine. For example, this is how I get the error (using regular try catch in c#):</p>
  
  <pre><code>try
  {
      FacebookClient facebookClient = new FacebookClient();
      facebookClient.AccessToken = "&lt;YOUR_ACCESS_TOKEN&gt;"
  
      Dictionary&lt;string, object&gt; parameters = new Dictionary&lt;string, object&gt;();
      string name = Guid.NewGuid().ToString();
      parameters.Add("name", name);
      parameters.Add("conversion_specs", "");
      parameters.Add("campaign_id", "6024570447800");
      parameters.Add("creative", "{\"creative_id\":\"6024570452200\"}");
      parameters.Add("redownload", "false");
      parameters.Add("tracking_specs", "");
      parameters.Add("view_tags", "[]");
  
      var result = facebookClient.Post("v2.2/act_107893676040337/adgroups", parameters) as IDictionary&lt;string, object&gt;;
  }
  catch (Exception ex)
  {
      FacebookApiException fbEx = ex as FacebookApiException;
      string errorMsg = fbEx.Message;
  }
  </code></pre>
  
  <p>It happens because Facebook changed the return error object and added 2 new fields: error_user_title, error_user_msg.
  Is there a way to access these fields in the FacebookApiException object ?
  How can I extract the relevant error message?</p>