‰PNG  IHDRèèÂÁC³×IDATxÚíÖ1 À°ù7 89šTÁ®5<'wÀ¸€qŒ;`ÜÀ¸Æ0î`ÜãÆ0î€qãwÀ¸€qŒ; wÀ¸€qŒ;`ÜÀ¸Æ0î`ÜãÆ0î€qãwÀ¸€qŒ;`ÜÀ¸ÆŒ;`ÜãÆ0î€qãw0î€qŒ;wÀ¸ÆŒ;`ÜãÆ0î`Üãw0î€qŒ;wÀ¸€qŒ;`ÜÀ¸Æ0î`Üãw0î€qãwÀ¸€qŒ;`ÜÀ¸ÆŒ;`ÜãÆ0î€qãwÀ¸€qŒ;wÀ¸ÆŒ;`ÜãÆ0î`Üãw0î€qŒ;wÀ¸ÆŒ;`ÜÀ¸Æ0î`Üãw0î€qãwÀ¸€qŒ;`ÜÀ¸Æ0î`ÜãÆ0î€qãwÀ¸€qŒ;wÀ¸ÆŒ;`ÜãÆ0î€qãw0î€qŒ;wÀ¸ÆŒ;`ÜÀ¸Æ0î`Üãw0î€qŒ;wÀ¸€qŒ;`ÜÀ¸Æ0î`ÜãÆ0î€qãwÀ¸€qŒ;`ÜÀ¸ÆŒ;`ÜãÆ0î€qãw0î€qŒ;wÀ¸ÆŒ;`ÜãÆ0î`Üãw0î€qŒ;wÀ¸€qŒ;`ÜÀ¸Æ0î`Üãw0î€qãwÀ¸€qŒ;`ÜÀ¸ÆŒ»`ÜãÆ0î€qãwÀ¸€qŒ;wÀ¸ÆŒ;`ÜãÆ0î€`ÜãÆ0î€qãwÀ¸€qŒ;wÀ¸ÆŒ;`ÜãÆ0î€`ÜãÆ0î€qãwÀ¸€qŒ;wÀ¸ÆŒ;`ÜãÆ0î€qãw0î€qŒ;wÀ¸ÆŒ;`ÜÀ¸Æ0î`Üãw0î€qŒ;wÀ¸€qŒ;`ÜÀ¸Æ0î`ÜãÆ0î€qãwÀ¸€qŒ;`ÜÀ¸ÆŒ;`ÜãÆ0î€qãw0î€qŒ;wÀ¸ÆŒ;`ÜãÆ0î`Üãw0î€qŒ;wÀ¸€qŒ;`ÜÀ¸Æ0î`Üãw0î€qãwÀ¸€qŒ;`ÜÀ¸ÆŒ;`ÜãÆ0î€qãwÀ¸€qŒ;wÀ¸ÆŒ;`ÜãÆ0î`Üãw0î€qŒ;wÀ¸ÆŒ;`ÜÀ¸Æ0î`Üãw0î€qãwÀ¸€qŒ;`ÜÀ¸Æ0î`ÜãÆ0î€qãwÀ¸€qŒ;wÀ¸ÆŒ;`ÜãÆ0î€qãw0î€qŒ;wÀ¸ÆŒ;`ÜÀ¸Æ0î`Üãw0î€qŒ;wÀ¸€qŒ;`ÜÀ¸Æ0î`ÜãÆ0î€qãwÀ¸€qŒ;`ÜÀ¸ÆŒ;`ÜãÆ0î€qãw0î€qŒ;wÀ¸ÆŒ;`ÜãÆ0î`Üãw0î€qŒ;wÀ¸€qŒ;wÀ¸ÆŒ;`ÜãÆ0î`Üãw0î€qŒ;wÀ¸€qŒ;wÀ¸ÆŒ;`ÜãÆ0î`Üãw0î€qŒ;wÀ¸ÆŒ;`ÜÀ¸Æ0î`Üãw0î€qãwÀ¸€qŒ;`ÜÀ¸Æ0î`ÜãÆ0î€qãwÀ¸€qŒ;wÀ¸ÆŒ;`ÜãÆ0î€qãw0î€qŒ;wÀ¸ÆŒ;`ÜÀ¸Æ0î`Üãw0î€qŒ;wÀ¸€qŒ;`ÜÀ¸Æ0î`ÜãÆ0î€qãwÀ¸€qŒ;`ÜÀ¸ÆŒ;`ÜãÆ0î€qãw0î€qŒ;wÀ¸ÆŒ;`ÜãÆ0î`Üãw0î€qŒ;wÀ¸€qŒ;`ÜÀ¸Æ0î`Üãw0î€qãwÀ¸€qŒ;`ÜÀ¸ÆŒ;`ÜãÆ0î€qãwÀ¸€qŒ;wÀ¸ÆŒ;`ÜãÆ0î`Üãw0î€qŒ;wÀ¸ÆŒ;`ÜÀ¸Æ0î`Üãw0î€qãwÀ¸€qŒ;`ÜÀ¸Æ0î`ÜãÆ0î€qãwÀ¸€qŒ;wÀ¸ÆŒ;`ÜãÆ0î€qãw0î€qŒ;wÀ¸ÆŒ;`ÜÀ¸KÆ0î`Üãw0î€qŒ;wÀ¸€qŒ;`ÜÀ¸Æ0î`ÜãHÆ0î`Üãw0î€qŒ;wÀ¸€qŒ;`ÜÀ¸Æ0î`ÜãHÆ0î`Üãw0î€qŒ;wÀ¸€qŒ;`ÜÀ¸Æ0î`Üãw0î€qãwÀ¸€qŒ;`ÜÀ¸ÆŒ;`ÜãÆ0î€qãwÀ¸€qŒ;wÀ¸ÆŒ;`ÜãÆ0î`Üãw0î€qŒ;wÀ¸ÆŒ;`ÜÀ¸Æ0î`Üãw0î€qãwÀ¸€qŒ;`ÜÀ¸Æ0î`ÜãÆ0î€qãwÀ¸€qŒ;wÀ¸ÆŒ;`ÜãÆ0î€qãw0î€qŒ;wÀ¸ÆŒ;`ÜÀ¸Æ0î`Üãw0î€qŒ;wÀ¸€qŒ;`ÜÀ¸Æ0î`ÜãÆ0î€qãwÀ¸€qŒ;`ÜÀ¸ÆŒ;`ÜãÆ0î€qãw0î€qŒ;wÀ¸ÆŒ;`ÜãÆ0î`Üãw0î€qŒ;wÀ¸€qŒ;`ÜÀ¸Æ0î`Üãw0î€qãwÀ¸€qŒ;`ÜÀ¸ÆŒ;`ÜãÆ0î€qãwÀ¸€qŒ;wÀ¸ÆŒ;`ÜãÆ0î`Üãw0î€qŽºÆá¾d“é­IEND®B`‚ FM / docs
/home/wespack/public_html/capwes.com/admin/vendors/fbsdk/docs
NameSizeModeActions
AccessToken.fbmd38850644editdlrm
example_access_token_from_canvas.fbmd14180644editdlrm
example_access_token_from_javascript.fbmd26160644editdlrm
example_access_token_from_page_tab.fbmd13570644editdlrm
example_batch_request.fbmd53570644editdlrm
example_batch_upload.fbmd21670644editdlrm
example_facebook_login.fbmd32570644editdlrm
example_pagination_basic.fbmd15820644editdlrm
example_post_links.fbmd16630644editdlrm
example_retrieve_user_profile.fbmd13920644editdlrm
example_upload_photo.fbmd17570644editdlrm
example_upload_video.fbmd12750644editdlrm
Facebook.fbmd177370644editdlrm
FacebookApp.fbmd20690644editdlrm
FacebookBatchRequest.fbmd32080644editdlrm
FacebookBatchResponse.fbmd22890644editdlrm
FacebookCanvasHelper.fbmd32580644editdlrm
FacebookClient.fbmd41560644editdlrm
FacebookFile.fbmd17690644editdlrm
FacebookJavaScriptHelper.fbmd31670644editdlrm
FacebookPageTabHelper.fbmd18620644editdlrm
FacebookRedirectLoginHelper.fbmd71040644editdlrm
FacebookRequest.fbmd57280644editdlrm
FacebookResponse.fbmd51880644editdlrm
FacebookResponseException.fbmd25920644editdlrm
FacebookSDKException.fbmd7630644editdlrm
FacebookVideo.fbmd13460644editdlrm
GraphEdge.fbmd35210644editdlrm
GraphNode.fbmd188590644editdlrm
PersistentDataInterface.fbmd22200644editdlrm
PseudoRandomStringGeneratorInterface.fbmd26690644editdlrm
sdk_downloads.fbmd47620644editdlrm
sdk_getting_started.fbmd139540644editdlrm
sdk_landing_page.fbmd24360644editdlrm
sdk_reference.fbmd74710644editdlrm
SignedRequest.fbmd32900644editdlrm
UrlDetectionInterface.fbmd16320644editdlrm
Edit: /home/wespack/public_html/capwes.com/admin/vendors/fbsdk/docs/FacebookRequest.fbmd (5728B)
# FacebookRequest for the Facebook SDK for PHP Represents a request that will be sent to the Graph API. ## Facebook\FacebookRequest {#overview} You can instantiate a new `FacebookRequest` entity directly by sending the arguments to the constructor. ~~~~ use Facebook\FacebookRequest; $request = new FacebookRequest( Facebook\FacebookApp $app, string $accessToken, string $method, string $endpoint, array $params, string $eTag, string $graphVersion ); ~~~~ Alternatively, you can make use of the [`request()` factory provided by `Facebook\Facebook`](/docs/php/Facebook#request) to create new `FacebookRequest` instances. The `FacebookRequest` entity does not actually make any calls to the Graph API, but instead just represents a request that can be sent to the Graph API later. This is most useful for making batch requests using [`Facebook\Facebook::sendBatchRequest()`](/docs/php/Facebook#send-batch-request) or [`Facebook\FacebookClient::sendBatchRequest()`](/docs/php/FacebookClient#send-batch-request). Usage: ~~~~ $fbApp = new Facebook\FacebookApp('{app-id}', '{app-secret}'); $request = new Facebook\FacebookRequest($fbApp, '{access-token}', 'GET', '/me'); // OR $fb = new Facebook\Facebook(/* . . . */); $request = $fb->request('GET', '/me'); // Send the request to Graph try { $response = $fb->getClient()->sendRequest($request); } catch(Facebook\Exceptions\FacebookResponseException $e) { // When Graph returns an error echo 'Graph returned an error: ' . $e->getMessage(); exit; } catch(Facebook\Exceptions\FacebookSDKException $e) { // When validation fails or other local issues echo 'Facebook SDK returned an error: ' . $e->getMessage(); exit; } $graphNode = $response->getGraphNode(); echo 'User name: ' . $graphNode['name']; ~~~~ ## Instance Methods {#instance-methods} ### setAccessToken() {#set-access-token} ~~~~ public setAccessToken(string|Facebook\AccessToken $accessToken) ~~~~ Sets the access token to be used for the request. ### getAccessToken() {#get-access-token} ~~~~ public string getAccessToken() ~~~~ Returns the access token to be used for the request in the form of a string. ### setApp() {#set-app} ~~~~ public setApp(Facebook\FacebookApp $app) ~~~~ Sets the [`Facebook\FacebookApp`](/docs/php/FacebookApp) entity used with this request. ### getApp() {#get-app} ~~~~ public Facebook\FacebookApp getApp() ~~~~ Returns the [`Facebook\FacebookApp`](/docs/php/FacebookApp) entity used with this request. ### getAppSecretProof() {#get-app-secret-proof} ~~~~ public string getAppSecretProof() ~~~~ Returns the [app secret proof](https://developers.facebook.com/docs/graph-api/securing-requests/#appsecret_proof) to sign the request. ### setMethod() {#set-method} ~~~~ public setMethod(string $method) ~~~~ Sets the HTTP verb to use for the request. ### getMethod() {#get-method} ~~~~ public string setMethod() ~~~~ Returns the HTTP verb to use for the request. ### setEndpoint() {#set-endpoint} ~~~~ public setEndpoint(string $endpoint) ~~~~ Sets the Graph URL endpoint to be used with the request. The endpoint must be excluding the host name and Graph version number prefix. ~~~~ $request->setEndpoint('/me'); ~~~~ ### getEndpoint() {#get-endpoint} ~~~~ public string getEndpoint() ~~~~ Returns the Graph URL endpoint to be used with the request. ### setHeaders() {#set-headers} ~~~~ public setHeaders(array $headers) ~~~~ Sets additional request headers to be use with the request. The supplied headers will be merged with the existing headers. The headers should be sent as an associative array with the key being the header name and the value being the header value. ~~~~ $request->setHeaders([ 'X-foo-header' => 'Something', ]); ~~~~ ### getHeaders() {#get-headers} ~~~~ public array getHeaders() ~~~~ Returns the request headers that will be sent with the request. The eTag headers `If-None-Match` are appended automatically. ### setETag() {#set-etag} ~~~~ public setETag(string $eTag) ~~~~ Sets the eTag that will be using for matching the `If-None-Match` header. ### setParams() {#set-params} ~~~~ public setParams(array $params) ~~~~ For `GET` requests, the array of params will be converted to a query string and appended to the URL. ~~~~ $request->setParams([ 'foo' => 'bar', 'limit' => 10, ]); // /endpoint?foo=bar&limit=10 ~~~~ For `POST` requests, the array of params will be sent in the `POST` body encoded as `application/x-www-form-urlencoded` for most request. If the request includes a file upload the params will be encoded as `multipart/form-data`. ### getParams() {#get-params} ~~~~ public array getParams() ~~~~ Returns an array of params to be sent with the request. The `access_token` and `appsecret_proof` params will be automatically appended to the array of params. ### getGraphVersion() {#get-graph-version} ~~~~ public string getGraphVersion() ~~~~ Returns the Graph version prefix to be used with the request. ### getUrl() {#get-url} ~~~~ public string getUrl() ~~~~ Returns the endpoint of the Graph URL for the request. This will include the Graph version prefix but will not include the host name. The host name is determined after the request is sent to [`Facebook\FacebookClient`](/docs/php/FacebookClient). ~~~~ $fb = new Facebook\Facebook(/* . . . */); $request = $fb->request('GET', '/me', ['fields' => 'id,name']); $url = $request->getUrl(); // /v2.2/me?fields=id,name&access_token=token&appsecret_proof=proof ~~~~