Encapsulates the response, successful or otherwise, of a call to the Facebook platform.
Returns information about any errors that may have occurred during the request.
public final FacebookRequestError getError()
The response returned for this request, if it's in object form.
public final JSONObject getJSONObject()
The response returned for this request, if it's in array form.
public final JSONArray getJSONArray()
Returns the HttpURLConnection that this response was generated from. If the response was retrieved from the cache, this will be null.
public final HttpURLConnection getConnection()
Returns the request that this response is for.
public GraphRequest getRequest()
Returns the server response as a String that this response is for.
public String getRawResponse()
If a Response contains results that contain paging information, returns a new Request that will retrieve the next page of results, in whichever direction is desired. If no paging information is available, returns null.
public GraphRequest getRequestForPagedResults(PagingDirection direction)
|Enum indicating whether to page forward or backward|
public static final String NON_JSON_RESPONSE_PROPERTY
public static final String SUCCESS_KEY