Skip to content

Commit ff0226e

Browse files
committed
default version bumped to 2.10 everywhere
1 parent 7af9f27 commit ff0226e

16 files changed

+25
-25
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Simple GET example of a user's profile.
3333
$fb = new \Facebook\Facebook([
3434
'app_id' => '{app-id}',
3535
'app_secret' => '{app-secret}',
36-
'default_graph_version' => 'v2.9',
36+
'default_graph_version' => 'v2.10',
3737
//'default_access_token' => '{access-token}', // optional
3838
]);
3939

docs/examples/access_token_from_canvas.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ A signed request will be sent to your app via the HTTP POST method within the co
1010
$fb = new Facebook\Facebook([
1111
'app_id' => '{app-id}',
1212
'app_secret' => '{app-secret}',
13-
'default_graph_version' => 'v2.9',
13+
'default_graph_version' => 'v2.10',
1414
]);
1515

1616
$helper = $fb->getCanvasHelper();

docs/examples/access_token_from_javascript.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ In order to have the JavaScript SDK set a cookie containing a signed request (wh
2929
FB.init({
3030
appId: 'your-app-id',
3131
cookie: true, // This is important, it's not enabled by default
32-
version: 'v2.9'
32+
version: 'v2.10'
3333
});
3434
};
3535
@@ -52,7 +52,7 @@ After the user successfully logs in, redirect the user (or make an AJAX request)
5252
$fb = new Facebook\Facebook([
5353
'app_id' => '{app-id}',
5454
'app_secret' => '{app-secret}',
55-
'default_graph_version' => 'v2.9',
55+
'default_graph_version' => 'v2.10',
5656
]);
5757

5858
$helper = $fb->getJavaScriptHelper();

docs/examples/access_token_from_page_tab.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Page tabs behave much like the app canvas. The PHP SDK provides a helper for pag
1010
$fb = new Facebook\Facebook([
1111
'app_id' => '{app-id}',
1212
'app_secret' => '{app-secret}',
13-
'default_graph_version' => 'v2.9',
13+
'default_graph_version' => 'v2.10',
1414
]);
1515

1616
$helper = $fb->getPageTabHelper();

docs/examples/batch_request.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The following example assumes we have the following permissions granted from the
1111
$fb = new Facebook\Facebook([
1212
'app_id' => '{app-id}',
1313
'app_secret' => '{app-secret}',
14-
'default_graph_version' => 'v2.9',
14+
'default_graph_version' => 'v2.10',
1515
]);
1616

1717
// Since all the requests will be sent on behalf of the same user,
@@ -109,7 +109,7 @@ The following example is a subset of the [first example](#example). We will only
109109
$fb = new Facebook\Facebook([
110110
'app_id' => '{app-id}',
111111
'app_secret' => '{app-secret}',
112-
'default_graph_version' => 'v2.9',
112+
'default_graph_version' => 'v2.10',
113113
]);
114114

115115
// Since all the requests will be sent on behalf of the same user,
@@ -176,7 +176,7 @@ Since we want the second request to be executed after the first one is completed
176176
$fb = new Facebook\Facebook([
177177
'app_id' => '{app-id}',
178178
'app_secret' => '{app-secret}',
179-
'default_graph_version' => 'v2.9',
179+
'default_graph_version' => 'v2.10',
180180
]);
181181

182182
// Since all the requests will be sent on behalf of the same user,
@@ -241,7 +241,7 @@ Since the requests sent in a batch are unrelated by default, we can make request
241241
$fb = new Facebook\Facebook([
242242
'app_id' => '{app-id}',
243243
'app_secret' => '{app-secret}',
244-
'default_graph_version' => 'v2.9',
244+
'default_graph_version' => 'v2.10',
245245
]);
246246

247247
$batch = [

docs/examples/batch_upload.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The following example will upload two photos and one video.
1212
$fb = new Facebook\Facebook([
1313
'app_id' => '{app-id}',
1414
'app_secret' => '{app-secret}',
15-
'default_graph_version' => 'v2.9',
15+
'default_graph_version' => 'v2.10',
1616
]);
1717

1818
// Since all the requests will be sent on behalf of the same user,

docs/examples/facebook_login.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ In this example, the PHP script that generates the login link is called `/login.
1414
$fb = new Facebook\Facebook([
1515
'app_id' => '{app-id}',
1616
'app_secret' => '{app-secret}',
17-
'default_graph_version' => 'v2.9',
17+
'default_graph_version' => 'v2.10',
1818
]);
1919

2020
$helper = $fb->getRedirectLoginHelper();
@@ -31,7 +31,7 @@ echo '<a href="' . $loginUrl . '">Log in with Facebook!</a>';
3131
$fb = new Facebook\Facebook([
3232
'app_id' => '{app-id}',
3333
'app_secret' => '{app-secret}',
34-
'default_graph_version' => 'v2.9',
34+
'default_graph_version' => 'v2.10',
3535
]);
3636

3737
$helper = $fb->getRedirectLoginHelper();

docs/examples/pagination_basic.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ In this example we'll pull five entries from a user's feed (assuming the user ap
1212
$fb = new Facebook\Facebook([
1313
'app_id' => '{app-id}',
1414
'app_secret' => '{app-secret}',
15-
'default_graph_version' => 'v2.9',
15+
'default_graph_version' => 'v2.10',
1616
]);
1717

1818
try {

docs/examples/post_links.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For more information, see the documentation for [`Facebook\Facebook`](../referen
1212
$fb = new Facebook\Facebook([
1313
'app_id' => '{app-id}',
1414
'app_secret' => '{app-secret}',
15-
'default_graph_version' => 'v2.9',
15+
'default_graph_version' => 'v2.10',
1616
]);
1717

1818
$linkData = [

docs/examples/retrieve_user_profile.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For more information, see the documentation for [`Facebook\Facebook`](../referen
1212
$fb = new Facebook\Facebook([
1313
'app_id' => '{app-id}',
1414
'app_secret' => '{app-secret}',
15-
'default_graph_version' => 'v2.9',
15+
'default_graph_version' => 'v2.10',
1616
]);
1717

1818
try {

docs/examples/upload_photo.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For more information, see the documentation for [`Facebook\Facebook`](../referen
1212
$fb = new Facebook\Facebook([
1313
'app_id' => '{app-id}',
1414
'app_secret' => '{app-secret}',
15-
'default_graph_version' => 'v2.9',
15+
'default_graph_version' => 'v2.10',
1616
]);
1717

1818
$data = [

docs/examples/upload_video.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The following example will upload a video in chunks using the [resumable upload]
1212
$fb = new Facebook\Facebook([
1313
'app_id' => '{app-id}',
1414
'app_secret' => '{app-secret}',
15-
'default_graph_version' => 'v2.9',
15+
'default_graph_version' => 'v2.10',
1616
]);
1717

1818
$data = [

docs/getting_started.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Before we can send requests to the Graph API, we need to load our app configurat
8686
$fb = new Facebook\Facebook([
8787
'app_id' => '{app-id}',
8888
'app_secret' => '{app-secret}',
89-
'default_graph_version' => 'v2.9',
89+
'default_graph_version' => 'v2.10',
9090
]);
9191
```
9292

@@ -206,7 +206,7 @@ if (isset($accessToken)) {
206206
}
207207
```
208208

209-
> **Warning:** Make sure you set the `{cookie:true}` option when you [initialize the SDK for JavaScript](https://developers.facebook.com/docs/javascript/reference/FB.init/v2.9). This will make the SDK for JavaScript set a cookie on your domain containing information about the user in the form of a signed request.
209+
> **Warning:** Make sure you set the `{cookie:true}` option when you [initialize the SDK for JavaScript](https://developers.facebook.com/docs/javascript/reference/FB.init/v2.10). This will make the SDK for JavaScript set a cookie on your domain containing information about the user in the form of a signed request.
210210
211211
## Extending the access token
212212

docs/reference/Facebook.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ To instantiate a new `Facebook\Facebook` service, pass an array of configuration
1010
$fb = new Facebook\Facebook([
1111
'app_id' => '{app-id}',
1212
'app_secret' => '{app-secret}',
13-
'default_graph_version' => 'v2.9',
13+
'default_graph_version' => 'v2.10',
1414
// . . .
1515
]);
1616
```
@@ -48,7 +48,7 @@ $fb = new Facebook\Facebook([
4848
'app_secret' => '{app-secret}',
4949
'default_access_token' => '{access-token}',
5050
'enable_beta_mode' => true,
51-
'default_graph_version' => 'v2.9',
51+
'default_graph_version' => 'v2.10',
5252
'http_client_handler' => 'guzzle',
5353
'persistent_data_handler' => 'memory',
5454
'url_detection_handler' => new MyUrlDetectionHandler(),
@@ -69,7 +69,7 @@ The default fallback access token to use if one is not explicitly provided. The
6969
Enable [beta mode](https://developers.facebook.com/docs/apps/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`.
7070

7171
### `default_graph_version`
72-
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.9`. Defaults to the [latest version of Graph](https://developers.facebook.com/docs/apps/changelog).
72+
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.10`. Defaults to the [latest version of Graph](https://developers.facebook.com/docs/apps/changelog).
7373

7474
### `http_client_handler`
7575
Allows you to overwrite the default HTTP client.
@@ -317,7 +317,7 @@ public Facebook\FacebookResponse sendRequest(
317317
Sends a request to the Graph API.
318318

319319
```php
320-
$response = $fb->sendRequest('GET', '/me', [], '{access-token}', 'eTag', 'v2.9');
320+
$response = $fb->sendRequest('GET', '/me', [], '{access-token}', 'eTag', 'v2.10');
321321
```
322322

323323
## sendBatchRequest()

docs/reference/FacebookRequest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,5 +176,5 @@ $fb = new Facebook\Facebook(/* . . . */);
176176
$request = $fb->request('GET', '/me', ['fields' => 'id,name']);
177177

178178
$url = $request->getUrl();
179-
// /v2.9/me?fields=id,name&access_token=token&appsecret_proof=proof
179+
// /v2.10/me?fields=id,name&access_token=token&appsecret_proof=proof
180180
```

src/Facebook/Facebook.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Facebook
5858
/**
5959
* @const string Default Graph API version for requests.
6060
*/
61-
const DEFAULT_GRAPH_VERSION = 'v2.9';
61+
const DEFAULT_GRAPH_VERSION = 'v2.10';
6262

6363
/**
6464
* @const string The name of the environment variable that contains the app ID.

0 commit comments

Comments
 (0)