diff --git a/README.md b/README.md index 219a028ed..697d9e747 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Simple GET example of a user's profile. $fb = new Facebook\Facebook([ 'app_id' => '{app-id}', 'app_secret' => '{app-secret}', - 'default_graph_version' => 'v2.5', + 'default_graph_version' => 'v2.6', //'default_access_token' => '{access-token}', // optional ]); diff --git a/docs/Facebook.fbmd b/docs/Facebook.fbmd index b081f0ed3..5a86e64f4 100644 --- a/docs/Facebook.fbmd +++ b/docs/Facebook.fbmd @@ -13,7 +13,7 @@ To instantiate a new `Facebook\Facebook` service, pass an array of configuration $fb = new Facebook\Facebook([ 'app_id' => '{app-id}', 'app_secret' => '{app-secret}', - 'default_graph_version' => 'v2.5', + 'default_graph_version' => 'v2.6', // . . . ]); ~~~~ @@ -53,7 +53,7 @@ $fb = new Facebook\Facebook([ 'app_secret' => '{app-secret}', 'default_access_token' => '{access-token}', 'enable_beta_mode' => true, - 'default_graph_version' => 'v2.5', + 'default_graph_version' => 'v2.6', 'http_client_handler' => 'guzzle', 'persistent_data_handler' => 'memory', 'url_detection_handler' => new MyUrlDetectionHandler(), @@ -74,7 +74,7 @@ The default fallback access token to use if one is not explicitly provided. The Enable [beta mode](/docs/support/beta-tier/) so that request are made to the [https://graph.beta.facebook.com](https://graph.beta.facebook.com/) endpoint. Set to boolean `true` to enable or `false` to disable. Defaults to `false`. ### `default_graph_version` {#defaultversion} -Allows you to overwrite the default Graph version number set in `Facebook\Facebook::DEFAULT_GRAPH_VERSION`. Set this as a string as it would appear in the Graph url, e.g. `v2.5`. Defaults to the [latest version of Graph](/docs/apps/changelog). +Allows you to overwrite the default Graph version number set in `Facebook\Facebook::DEFAULT_GRAPH_VERSION`. Set this as a string as it would appear in the Graph url, e.g. `v2.6`. Defaults to the [latest version of Graph](/docs/apps/changelog). ### `http_client_handler` {#httpclient} Allows you to overwrite the default HTTP client. @@ -326,7 +326,7 @@ public Facebook\FacebookResponse sendRequest( Sends a request to the Graph API. ~~~~ -$response = $fb->sendRequest('GET', '/me', [], '{access-token}', 'eTag', 'v2.5'); +$response = $fb->sendRequest('GET', '/me', [], '{access-token}', 'eTag', 'v2.6'); ~~~~ ## sendBatchRequest() {#send-batch-request} diff --git a/docs/FacebookRequest.fbmd b/docs/FacebookRequest.fbmd index 8f9948331..8e41c7318 100644 --- a/docs/FacebookRequest.fbmd +++ b/docs/FacebookRequest.fbmd @@ -211,6 +211,6 @@ $fb = new Facebook\Facebook(/* . . . */); $request = $fb->request('GET', '/me', ['fields' => 'id,name']); $url = $request->getUrl(); -// /v2.5/me?fields=id,name&access_token=token&appsecret_proof=proof +// /v2.6/me?fields=id,name&access_token=token&appsecret_proof=proof ~~~~ diff --git a/docs/example_access_token_from_canvas.fbmd b/docs/example_access_token_from_canvas.fbmd index 9cfd361f3..b7e1b8076 100644 --- a/docs/example_access_token_from_canvas.fbmd +++ b/docs/example_access_token_from_canvas.fbmd @@ -13,7 +13,7 @@ A signed request will be sent to your app via the HTTP POST method within the co $fb = new Facebook\Facebook([ 'app_id' => '{app-id}', 'app_secret' => '{app-secret}', - 'default_graph_version' => 'v2.5', + 'default_graph_version' => 'v2.6', ]); $helper = $fb->getCanvasHelper(); diff --git a/docs/example_access_token_from_javascript.fbmd b/docs/example_access_token_from_javascript.fbmd index e2b049eb2..b13645425 100644 --- a/docs/example_access_token_from_javascript.fbmd +++ b/docs/example_access_token_from_javascript.fbmd @@ -32,7 +32,7 @@ In order to have the JavaScript SDK set a cookie containing a signed request (wh FB.init({ appId: 'your-app-id', cookie: true, // This is important, it's not enabled by default - version: 'v2.5' + version: 'v2.6' }); }; @@ -55,7 +55,7 @@ After the user successfully logs in, redirect the user (or make an AJAX request) $fb = new Facebook\Facebook([ 'app_id' => '{app-id}', 'app_secret' => '{app-secret}', - 'default_graph_version' => 'v2.5', + 'default_graph_version' => 'v2.6', ]); $helper = $fb->getJavaScriptHelper(); diff --git a/docs/example_access_token_from_page_tab.fbmd b/docs/example_access_token_from_page_tab.fbmd index b093ba6e7..bdcbe8160 100644 --- a/docs/example_access_token_from_page_tab.fbmd +++ b/docs/example_access_token_from_page_tab.fbmd @@ -13,7 +13,7 @@ Page tabs behave much like the app canvas. The PHP SDK provides a helper for pag $fb = new Facebook\Facebook([ 'app_id' => '{app-id}', 'app_secret' => '{app-secret}', - 'default_graph_version' => 'v2.5', + 'default_graph_version' => 'v2.6', ]); $helper = $fb->getPageTabHelper(); diff --git a/docs/example_batch_request.fbmd b/docs/example_batch_request.fbmd index eb364d635..ddd52bdf1 100644 --- a/docs/example_batch_request.fbmd +++ b/docs/example_batch_request.fbmd @@ -13,7 +13,7 @@ The following example assumes we have the following permissions granted from the $fb = new Facebook\Facebook([ 'app_id' => '{app-id}', 'app_secret' => '{app-secret}', - 'default_graph_version' => 'v2.5', + 'default_graph_version' => 'v2.6', ]); // Since all the requests will be sent on behalf of the same user, @@ -114,7 +114,7 @@ Since the requests sent in a batch are unrelated by default, we can make request $fb = new Facebook\Facebook([ 'app_id' => '{app-id}', 'app_secret' => '{app-secret}', - 'default_graph_version' => 'v2.5', + 'default_graph_version' => 'v2.6', ]); $batch = [ diff --git a/docs/example_batch_upload.fbmd b/docs/example_batch_upload.fbmd index 5d58f7629..f18f32b6c 100644 --- a/docs/example_batch_upload.fbmd +++ b/docs/example_batch_upload.fbmd @@ -15,7 +15,7 @@ The following example will upload two photos and one video. $fb = new Facebook\Facebook([ 'app_id' => '{app-id}', 'app_secret' => '{app-secret}', - 'default_graph_version' => 'v2.5', + 'default_graph_version' => 'v2.6', ]); // Since all the requests will be sent on behalf of the same user, diff --git a/docs/example_facebook_login.fbmd b/docs/example_facebook_login.fbmd index 26f019db9..9a4e9b75b 100644 --- a/docs/example_facebook_login.fbmd +++ b/docs/example_facebook_login.fbmd @@ -19,7 +19,7 @@ In this example, the PHP script that generates the login link is called `/login. $fb = new Facebook\Facebook([ 'app_id' => '{app-id}', 'app_secret' => '{app-secret}', - 'default_graph_version' => 'v2.5', + 'default_graph_version' => 'v2.6', ]); $helper = $fb->getRedirectLoginHelper(); @@ -38,7 +38,7 @@ echo 'Log in with Facebook!'; $fb = new Facebook\Facebook([ 'app_id' => '{app-id}', 'app_secret' => '{app-secret}', - 'default_graph_version' => 'v2.5', + 'default_graph_version' => 'v2.6', ]); $helper = $fb->getRedirectLoginHelper(); diff --git a/docs/example_pagination_basic.fbmd b/docs/example_pagination_basic.fbmd index 28521a476..629de2a29 100644 --- a/docs/example_pagination_basic.fbmd +++ b/docs/example_pagination_basic.fbmd @@ -15,7 +15,7 @@ In this example we'll pull five entries from a user's feed (assuming the user ap $fb = new Facebook\Facebook([ 'app_id' => '{app-id}', 'app_secret' => '{app-secret}', - 'default_graph_version' => 'v2.5', + 'default_graph_version' => 'v2.6', ]); try { diff --git a/docs/example_post_links.fbmd b/docs/example_post_links.fbmd index 492e3bdff..5f052c2a1 100644 --- a/docs/example_post_links.fbmd +++ b/docs/example_post_links.fbmd @@ -15,7 +15,7 @@ For more information, see the documentation for [`Facebook\Facebook`](/docs/php/ $fb = new Facebook\Facebook([ 'app_id' => '{app-id}', 'app_secret' => '{app-secret}', - 'default_graph_version' => 'v2.5', + 'default_graph_version' => 'v2.6', ]); $linkData = [ diff --git a/docs/example_retrieve_user_profile.fbmd b/docs/example_retrieve_user_profile.fbmd index 899e50322..67cdb7e7b 100644 --- a/docs/example_retrieve_user_profile.fbmd +++ b/docs/example_retrieve_user_profile.fbmd @@ -15,7 +15,7 @@ For more information, see the documentation for [`Facebook\Facebook`](/docs/php/ $fb = new Facebook\Facebook([ 'app_id' => '{app-id}', 'app_secret' => '{app-secret}', - 'default_graph_version' => 'v2.5', + 'default_graph_version' => 'v2.6', ]); try { diff --git a/docs/example_upload_photo.fbmd b/docs/example_upload_photo.fbmd index e7b90d180..d10c87b33 100644 --- a/docs/example_upload_photo.fbmd +++ b/docs/example_upload_photo.fbmd @@ -15,7 +15,7 @@ For more information, see the documentation for [`Facebook\Facebook`](/docs/php/ $fb = new Facebook\Facebook([ 'app_id' => '{app-id}', 'app_secret' => '{app-secret}', - 'default_graph_version' => 'v2.5', + 'default_graph_version' => 'v2.6', ]); $data = [ diff --git a/docs/example_upload_video.fbmd b/docs/example_upload_video.fbmd index 3d7356939..11789e66e 100644 --- a/docs/example_upload_video.fbmd +++ b/docs/example_upload_video.fbmd @@ -18,7 +18,7 @@ The following example will upload a video in chunks using the [resumable upload] $fb = new Facebook\Facebook([ 'app_id' => '{app-id}', 'app_secret' => '{app-secret}', - 'default_graph_version' => 'v2.5', + 'default_graph_version' => 'v2.6', ]); $data = [ diff --git a/docs/sdk_getting_started.fbmd b/docs/sdk_getting_started.fbmd index 66db16475..bbb8330ec 100644 --- a/docs/sdk_getting_started.fbmd +++ b/docs/sdk_getting_started.fbmd @@ -113,7 +113,7 @@ Before we can send requests to the Graph API, we need to load our app configurat $fb = new Facebook\Facebook([ 'app_id' => '{app-id}', 'app_secret' => '{app-secret}', - 'default_graph_version' => 'v2.5', + 'default_graph_version' => 'v2.6', ]); ~~~ diff --git a/src/Facebook/Facebook.php b/src/Facebook/Facebook.php index 4204a4332..dd273e835 100644 --- a/src/Facebook/Facebook.php +++ b/src/Facebook/Facebook.php @@ -58,7 +58,7 @@ class Facebook /** * @const string Default Graph API version for requests. */ - const DEFAULT_GRAPH_VERSION = 'v2.5'; + const DEFAULT_GRAPH_VERSION = 'v2.6'; /** * @const string The name of the environment variable that contains the app ID.