| @@ 321-331 (lines=11) @@ | ||
| 318 | * |
|
| 319 | * @throws FacebookSDKException |
|
| 320 | */ |
|
| 321 | public function get($endpoint, $accessToken = null, $eTag = null, $graphVersion = null) |
|
| 322 | { |
|
| 323 | return $this->sendRequest( |
|
| 324 | 'GET', |
|
| 325 | $endpoint, |
|
| 326 | $params = [], |
|
| 327 | $accessToken, |
|
| 328 | $eTag, |
|
| 329 | $graphVersion |
|
| 330 | ); |
|
| 331 | } |
|
| 332 | ||
| 333 | /** |
|
| 334 | * Sends a POST request to Graph and returns the result. |
|
| @@ 346-356 (lines=11) @@ | ||
| 343 | * |
|
| 344 | * @throws FacebookSDKException |
|
| 345 | */ |
|
| 346 | public function post($endpoint, array $params = [], $accessToken = null, $eTag = null, $graphVersion = null) |
|
| 347 | { |
|
| 348 | return $this->sendRequest( |
|
| 349 | 'POST', |
|
| 350 | $endpoint, |
|
| 351 | $params, |
|
| 352 | $accessToken, |
|
| 353 | $eTag, |
|
| 354 | $graphVersion |
|
| 355 | ); |
|
| 356 | } |
|
| 357 | ||
| 358 | /** |
|
| 359 | * Sends a DELETE request to Graph and returns the result. |
|
| @@ 371-381 (lines=11) @@ | ||
| 368 | * |
|
| 369 | * @throws FacebookSDKException |
|
| 370 | */ |
|
| 371 | public function delete($endpoint, array $params = [], $accessToken = null, $eTag = null, $graphVersion = null) |
|
| 372 | { |
|
| 373 | return $this->sendRequest( |
|
| 374 | 'DELETE', |
|
| 375 | $endpoint, |
|
| 376 | $params, |
|
| 377 | $accessToken, |
|
| 378 | $eTag, |
|
| 379 | $graphVersion |
|
| 380 | ); |
|
| 381 | } |
|
| 382 | ||
| 383 | /** |
|
| 384 | * Sends a request to Graph for the next page of results. |
|