title: Handling Android Facebook API's Response Object
body: <p>The current Facebook API v3.0.2.b will return a com.facebook.Response object that holds the response. Do you know how to parse this? The following code will raise an Exception :(</p>
  
  <pre><code>//execute the request
  Request request = new Request
  (
      session,
      "/fql",
      params,
      HttpMethod.GET,
      new Request.Callback()
      {
          @Override
          public void onCompleted( Response response )
          {
              try
              {
                  JSONArray json = new JSONArray( response.toString() );
              }
              catch ( Throwable t )
              {
                  System.err.println( t );
              }
          }
      }
  );
  Request.executeBatchAsync( request );
  </code></pre>
  
  <p>The error message says:</p>
  
  <pre><code>org.json.JSONException: Unterminated object at character 25 of {Response:  responseCode: 200, graphObject: GraphObject{graphObjectClass=GraphObject, state={"data":[{"pic_square":.....
  </code></pre>
  
  <p>Does anybody know what's the correct solution? Shall I use</p>
  
  <pre><code>GraphObject go = response.getGraphObject();
  </code></pre>
  
  <p>.. how can I get GraphUser-Objects with that?</p>
  
  <p>Sorry, this seems like a trivial issue but processing the Response-object is poorly documented in the facebook docs and I wasn't able to receive anything about this on the web :(</p>
  
  <p>Thank you very much in advance!</p>
  
  <p>Greetings Christopher</p>