|
Cheetah
|
Public Member Functions | |
| __construct (FacebookRequest $request, $body=null, $httpStatusCode=null, array $headers=[]) | |
| getRequest () | |
| getApp () | |
| getAccessToken () | |
| getHttpStatusCode () | |
| getHeaders () | |
| getBody () | |
| getDecodedBody () | |
| getAppSecretProof () | |
| getETag () | |
| getGraphVersion () | |
| isError () | |
| throwException () | |
| makeException () | |
| getThrownException () | |
| decodeBody () | |
| getGraphObject ($subclassName=null) | |
| getGraphNode ($subclassName=null) | |
| getGraphAlbum () | |
| getGraphPage () | |
| getGraphSessionInfo () | |
| getGraphUser () | |
| getGraphEvent () | |
| getGraphGroup () | |
| getGraphList ($subclassName=null, $auto_prefix=true) | |
| getGraphEdge ($subclassName=null, $auto_prefix=true) | |
Protected Attributes | |
| $httpStatusCode | |
| $headers | |
| $body | |
| $decodedBody = [] | |
| $request | |
| $thrownException | |
Definition at line 35 of file FacebookResponse.php.
| Facebook\FacebookResponse::__construct | ( | FacebookRequest | $request, |
$body = null, |
|||
$httpStatusCode = null, |
|||
| array | $headers = [] |
||
| ) |
Creates a new Response entity.
| FacebookRequest | $request | |
| string | null | $body | |
| int | null | $httpStatusCode | |
| array | null | $headers |
Definition at line 75 of file FacebookResponse.php.
| Facebook\FacebookResponse::decodeBody | ( | ) |
Convert the raw response into an array if possible.
Graph will return 2 types of responses:
/oauth/access_token endpoint when exchanging a short-lived access token for a long-lived access tokenDefinition at line 234 of file FacebookResponse.php.
| Facebook\FacebookResponse::getAccessToken | ( | ) |
Return the access token that was used for this response.
Definition at line 110 of file FacebookResponse.php.
| Facebook\FacebookResponse::getApp | ( | ) |
Return the FacebookApp entity used for this response.
Definition at line 100 of file FacebookResponse.php.
| Facebook\FacebookResponse::getAppSecretProof | ( | ) |
Get the app secret proof that was used for this response.
Definition at line 160 of file FacebookResponse.php.
| Facebook\FacebookResponse::getBody | ( | ) |
| Facebook\FacebookResponse::getDecodedBody | ( | ) |
| Facebook\FacebookResponse::getETag | ( | ) |
Get the ETag associated with the response.
Definition at line 170 of file FacebookResponse.php.
| Facebook\FacebookResponse::getGraphAlbum | ( | ) |
Convenience method for creating a GraphAlbum collection.
| FacebookSDKException |
Definition at line 299 of file FacebookResponse.php.
Instantiate a new GraphEdge from response.
| string | null | $subclassName | The GraphNode subclass to cast list items to. |
| boolean | $auto_prefix | Toggle to auto-prefix the subclass name. |
| FacebookSDKException |
Definition at line 404 of file FacebookResponse.php.
| Facebook\FacebookResponse::getGraphEvent | ( | ) |
Convenience method for creating a GraphEvent collection.
| FacebookSDKException |
Definition at line 355 of file FacebookResponse.php.
| Facebook\FacebookResponse::getGraphGroup | ( | ) |
Convenience method for creating a GraphGroup collection.
| FacebookSDKException |
Definition at line 369 of file FacebookResponse.php.
Instantiate a new GraphList from response.
| string | null | $subclassName | The GraphNode subclass to cast list items to. |
| boolean | $auto_prefix | Toggle to auto-prefix the subclass name. |
| FacebookSDKException |
Definition at line 389 of file FacebookResponse.php.
| Facebook\FacebookResponse::getGraphNode | ( | $subclassName = null | ) |
Instantiate a new GraphNode from response.
| string | null | $subclassName | The GraphNode subclass to cast to. |
| FacebookSDKException |
Definition at line 285 of file FacebookResponse.php.
| Facebook\FacebookResponse::getGraphObject | ( | $subclassName = null | ) |
Instantiate a new GraphObject from response.
| string | null | $subclassName | The GraphNode subclass to cast to. |
| FacebookSDKException |
Definition at line 271 of file FacebookResponse.php.
| Facebook\FacebookResponse::getGraphPage | ( | ) |
Convenience method for creating a GraphPage collection.
| FacebookSDKException |
Definition at line 313 of file FacebookResponse.php.
| Facebook\FacebookResponse::getGraphSessionInfo | ( | ) |
Convenience method for creating a GraphSessionInfo collection.
| FacebookSDKException |
Definition at line 327 of file FacebookResponse.php.
| Facebook\FacebookResponse::getGraphUser | ( | ) |
Convenience method for creating a GraphUser collection.
| FacebookSDKException |
Definition at line 341 of file FacebookResponse.php.
| Facebook\FacebookResponse::getGraphVersion | ( | ) |
Get the version of Graph that returned this response.
Definition at line 180 of file FacebookResponse.php.
| Facebook\FacebookResponse::getHeaders | ( | ) |
Return the HTTP headers for this response.
Definition at line 130 of file FacebookResponse.php.
| Facebook\FacebookResponse::getHttpStatusCode | ( | ) |
Return the HTTP status code for this response.
Definition at line 120 of file FacebookResponse.php.
| Facebook\FacebookResponse::getRequest | ( | ) |
Return the original request that returned this response.
Definition at line 90 of file FacebookResponse.php.
| Facebook\FacebookResponse::getThrownException | ( | ) |
Returns the exception that was thrown for this request.
Definition at line 218 of file FacebookResponse.php.
| Facebook\FacebookResponse::isError | ( | ) |
Returns true if Graph returned an error message.
Definition at line 190 of file FacebookResponse.php.
| Facebook\FacebookResponse::makeException | ( | ) |
Instantiates an exception to be thrown later.
Definition at line 208 of file FacebookResponse.php.
| Facebook\FacebookResponse::throwException | ( | ) |
Throws the exception.
| FacebookSDKException |
Definition at line 200 of file FacebookResponse.php.
|
protected |
Definition at line 50 of file FacebookResponse.php.
|
protected |
Definition at line 55 of file FacebookResponse.php.
|
protected |
Definition at line 45 of file FacebookResponse.php.
|
protected |
Definition at line 40 of file FacebookResponse.php.
|
protected |
Definition at line 60 of file FacebookResponse.php.
|
protected |
Definition at line 65 of file FacebookResponse.php.