Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit 7cc23a4

Browse files
committed
Bump Graph API version to v2.9
1 parent 63f2158 commit 7cc23a4

15 files changed

+23
-23
lines changed

README.md

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

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.8',
13+
'default_graph_version' => 'v2.9',
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.8'
32+
version: 'v2.9'
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.8',
55+
'default_graph_version' => 'v2.9',
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.8',
13+
'default_graph_version' => 'v2.9',
1414
]);
1515

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

docs/examples/batch_request.md

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

1616
// Since all the requests will be sent on behalf of the same user,
@@ -106,7 +106,7 @@ Since the requests sent in a batch are unrelated by default, we can make request
106106
$fb = new Facebook\Facebook([
107107
'app_id' => '{app-id}',
108108
'app_secret' => '{app-secret}',
109-
'default_graph_version' => 'v2.8',
109+
'default_graph_version' => 'v2.9',
110110
]);
111111

112112
$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.8',
15+
'default_graph_version' => 'v2.9',
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.8',
17+
'default_graph_version' => 'v2.9',
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.8',
34+
'default_graph_version' => 'v2.9',
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.8',
15+
'default_graph_version' => 'v2.9',
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.8',
15+
'default_graph_version' => 'v2.9',
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.8',
15+
'default_graph_version' => 'v2.9',
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.8',
15+
'default_graph_version' => 'v2.9',
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.8',
15+
'default_graph_version' => 'v2.9',
1616
]);
1717

1818
$data = [

docs/getting_started.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Before we can send requests to the Graph API, we need to load our app configurat
3636
$fb = new Facebook\Facebook([
3737
'app_id' => '{app-id}',
3838
'app_secret' => '{app-secret}',
39-
'default_graph_version' => 'v2.8',
39+
'default_graph_version' => 'v2.9',
4040
]);
4141
```
4242

@@ -156,7 +156,7 @@ if (isset($accessToken)) {
156156
}
157157
```
158158

159-
> **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.8). 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.
159+
> **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.
160160
161161
## Extending the access token
162162

docs/reference/Facebook.md

+5-5
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.8',
13+
'default_graph_version' => 'v2.9',
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.8',
51+
'default_graph_version' => 'v2.9',
5252
'http_client_handler' => 'guzzle',
5353
'persistent_data_handler' => 'memory',
5454
'url_detection_handler' => new MyUrlDetectionHandler(),
@@ -62,7 +62,7 @@ $fb = new Facebook\Facebook([
6262
**(Required)** The secret of your Facebook app. If not set, defaults to [the environment variables fallback](#environment-variables-fallback) if available.
6363

6464
### `default_graph_version`
65-
**(Required)** Allows you to set the default Graph version number. Set this as a string as it would appear in the Graph url, e.g. `v2.8`. See the [latest version of Graph](https://developers.facebook.com/docs/apps/changelog) for more info on Graph versions.
65+
**(Required)** Allows you to set the default Graph version number. Set this as a string as it would appear in the Graph url, e.g. `v2.9`. See the [latest version of Graph](https://developers.facebook.com/docs/apps/changelog) for more info on Graph versions.
6666

6767
### `default_access_token`
6868
The default fallback access token to use if one is not explicitly provided. The value can be of type `string` or `Facebook\AccessToken`. If any other value is provided an `InvalidArgumentException` will be thrown. Defaults to `null`.
@@ -123,7 +123,7 @@ To take advantage of this feature, simply set an environment variable named `FAC
123123

124124
```php
125125
$fb = new Facebook\Facebook([
126-
'default_graph_version' => 'v2.8',
126+
'default_graph_version' => 'v2.9',
127127
]);
128128
```
129129

@@ -295,7 +295,7 @@ public Facebook\FacebookResponse sendRequest(
295295
Sends a request to the Graph API.
296296

297297
```php
298-
$response = $fb->sendRequest('GET', '/me', [], '{access-token}', 'eTag', 'v2.8');
298+
$response = $fb->sendRequest('GET', '/me', [], '{access-token}', 'eTag', 'v2.9');
299299
```
300300

301301
## 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.8/me?fields=id,name&access_token=token&appsecret_proof=proof
179+
// /v2.9/me?fields=id,name&access_token=token&appsecret_proof=proof
180180
```

0 commit comments

Comments
 (0)