Encapsulates the response, successful or otherwise, of a call to the Facebook platform.
Prolonge : | Object |
Package : | facebook |
getError()
Returns information about any errors that may have occurred during the request.
public final FacebookRequestError getError()
getJSONObject()
The response returned for this request, if it's in object form.
public final JSONObject getJSONObject()
getJSONArray()
The response returned for this request, if it's in array form.
public final JSONArray getJSONArray()
getConnection()
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()
getRequest()
Returns the request that this response is for.
public GraphRequest getRequest()
getRawResponse()
Returns the server response as a String that this response is for.
public String getRawResponse()
getRequestForPagedResults(PagingDirection)
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)
Paramètre | Description |
---|---|
direction | Enum indicating whether to page forward or backward |
NON_JSON_RESPONSE_PROPERTY
public static final String NON_JSON_RESPONSE_PROPERTY
SUCCESS_KEY
public static final String SUCCESS_KEY