| @@ 333-343 (lines=11) @@ | ||
| 330 | * |
|
| 331 | * @throws FacebookSDKException |
|
| 332 | */ |
|
| 333 | public function get($endpoint, $accessToken = null, $eTag = null, $graphVersion = null) |
|
| 334 | { |
|
| 335 | return $this->sendRequest( |
|
| 336 | 'GET', |
|
| 337 | $endpoint, |
|
| 338 | $params = [], |
|
| 339 | $accessToken, |
|
| 340 | $eTag, |
|
| 341 | $graphVersion |
|
| 342 | ); |
|
| 343 | } |
|
| 344 | ||
| 345 | /** |
|
| 346 | * Sends a POST request to Graph and returns the result. |
|
| @@ 358-368 (lines=11) @@ | ||
| 355 | * |
|
| 356 | * @throws FacebookSDKException |
|
| 357 | */ |
|
| 358 | public function post($endpoint, array $params = [], $accessToken = null, $eTag = null, $graphVersion = null) |
|
| 359 | { |
|
| 360 | return $this->sendRequest( |
|
| 361 | 'POST', |
|
| 362 | $endpoint, |
|
| 363 | $params, |
|
| 364 | $accessToken, |
|
| 365 | $eTag, |
|
| 366 | $graphVersion |
|
| 367 | ); |
|
| 368 | } |
|
| 369 | ||
| 370 | /** |
|
| 371 | * Sends a DELETE request to Graph and returns the result. |
|
| @@ 383-393 (lines=11) @@ | ||
| 380 | * |
|
| 381 | * @throws FacebookSDKException |
|
| 382 | */ |
|
| 383 | public function delete($endpoint, array $params = [], $accessToken = null, $eTag = null, $graphVersion = null) |
|
| 384 | { |
|
| 385 | return $this->sendRequest( |
|
| 386 | 'DELETE', |
|
| 387 | $endpoint, |
|
| 388 | $params, |
|
| 389 | $accessToken, |
|
| 390 | $eTag, |
|
| 391 | $graphVersion |
|
| 392 | ); |
|
| 393 | } |
|
| 394 | ||
| 395 | /** |
|
| 396 | * Sends a request to Graph for the next page of results. |
|