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

Commit ea65829

Browse files
committed
Merge pull request #571 from SammyK/graph-v2.6
Bump Graph version to v2.6
2 parents 23eafab + fdd5d4a commit ea65829

16 files changed

+22
-22
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Simple GET example of a user's profile.
3131
$fb = new Facebook\Facebook([
3232
'app_id' => '{app-id}',
3333
'app_secret' => '{app-secret}',
34-
'default_graph_version' => 'v2.5',
34+
'default_graph_version' => 'v2.6',
3535
//'default_access_token' => '{access-token}', // optional
3636
]);
3737

docs/Facebook.fbmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ To instantiate a new `Facebook\Facebook` service, pass an array of configuration
1313
$fb = new Facebook\Facebook([
1414
'app_id' => '{app-id}',
1515
'app_secret' => '{app-secret}',
16-
'default_graph_version' => 'v2.5',
16+
'default_graph_version' => 'v2.6',
1717
// . . .
1818
]);
1919
~~~~
@@ -53,7 +53,7 @@ $fb = new Facebook\Facebook([
5353
'app_secret' => '{app-secret}',
5454
'default_access_token' => '{access-token}',
5555
'enable_beta_mode' => true,
56-
'default_graph_version' => 'v2.5',
56+
'default_graph_version' => 'v2.6',
5757
'http_client_handler' => 'guzzle',
5858
'persistent_data_handler' => 'memory',
5959
'url_detection_handler' => new MyUrlDetectionHandler(),
@@ -74,7 +74,7 @@ The default fallback access token to use if one is not explicitly provided. The
7474
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`.
7575

7676
### `default_graph_version` {#defaultversion}
77-
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).
77+
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).
7878

7979
### `http_client_handler` {#httpclient}
8080
Allows you to overwrite the default HTTP client.
@@ -326,7 +326,7 @@ public Facebook\FacebookResponse sendRequest(
326326
Sends a request to the Graph API.
327327

328328
~~~~
329-
$response = $fb->sendRequest('GET', '/me', [], '{access-token}', 'eTag', 'v2.5');
329+
$response = $fb->sendRequest('GET', '/me', [], '{access-token}', 'eTag', 'v2.6');
330330
~~~~
331331

332332
## sendBatchRequest() {#send-batch-request}

docs/FacebookRequest.fbmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,6 @@ $fb = new Facebook\Facebook(/* . . . */);
211211
$request = $fb->request('GET', '/me', ['fields' => 'id,name']);
212212

213213
$url = $request->getUrl();
214-
// /v2.5/me?fields=id,name&access_token=token&appsecret_proof=proof
214+
// /v2.6/me?fields=id,name&access_token=token&appsecret_proof=proof
215215
~~~~
216216
</card>

docs/example_access_token_from_canvas.fbmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A signed request will be sent to your app via the HTTP POST method within the co
1313
$fb = new Facebook\Facebook([
1414
'app_id' => '{app-id}',
1515
'app_secret' => '{app-secret}',
16-
'default_graph_version' => 'v2.5',
16+
'default_graph_version' => 'v2.6',
1717
]);
1818

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

docs/example_access_token_from_javascript.fbmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ In order to have the JavaScript SDK set a cookie containing a signed request (wh
3232
FB.init({
3333
appId: 'your-app-id',
3434
cookie: true, // This is important, it's not enabled by default
35-
version: 'v2.5'
35+
version: 'v2.6'
3636
});
3737
};
3838

@@ -55,7 +55,7 @@ After the user successfully logs in, redirect the user (or make an AJAX request)
5555
$fb = new Facebook\Facebook([
5656
'app_id' => '{app-id}',
5757
'app_secret' => '{app-secret}',
58-
'default_graph_version' => 'v2.5',
58+
'default_graph_version' => 'v2.6',
5959
]);
6060

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

docs/example_access_token_from_page_tab.fbmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Page tabs behave much like the app canvas. The PHP SDK provides a helper for pag
1313
$fb = new Facebook\Facebook([
1414
'app_id' => '{app-id}',
1515
'app_secret' => '{app-secret}',
16-
'default_graph_version' => 'v2.5',
16+
'default_graph_version' => 'v2.6',
1717
]);
1818

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

docs/example_batch_request.fbmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The following example assumes we have the following permissions granted from the
1313
$fb = new Facebook\Facebook([
1414
'app_id' => '{app-id}',
1515
'app_secret' => '{app-secret}',
16-
'default_graph_version' => 'v2.5',
16+
'default_graph_version' => 'v2.6',
1717
]);
1818

1919
// 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
114114
$fb = new Facebook\Facebook([
115115
'app_id' => '{app-id}',
116116
'app_secret' => '{app-secret}',
117-
'default_graph_version' => 'v2.5',
117+
'default_graph_version' => 'v2.6',
118118
]);
119119

120120
$batch = [

docs/example_batch_upload.fbmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The following example will upload two photos and one video.
1515
$fb = new Facebook\Facebook([
1616
'app_id' => '{app-id}',
1717
'app_secret' => '{app-secret}',
18-
'default_graph_version' => 'v2.5',
18+
'default_graph_version' => 'v2.6',
1919
]);
2020

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

docs/example_facebook_login.fbmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ In this example, the PHP script that generates the login link is called `/login.
1919
$fb = new Facebook\Facebook([
2020
'app_id' => '{app-id}',
2121
'app_secret' => '{app-secret}',
22-
'default_graph_version' => 'v2.5',
22+
'default_graph_version' => 'v2.6',
2323
]);
2424

2525
$helper = $fb->getRedirectLoginHelper();
@@ -38,7 +38,7 @@ echo '<a href="' . $loginUrl . '">Log in with Facebook!</a>';
3838
$fb = new Facebook\Facebook([
3939
'app_id' => '{app-id}',
4040
'app_secret' => '{app-secret}',
41-
'default_graph_version' => 'v2.5',
41+
'default_graph_version' => 'v2.6',
4242
]);
4343

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

docs/example_pagination_basic.fbmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ In this example we'll pull five entries from a user's feed (assuming the user ap
1515
$fb = new Facebook\Facebook([
1616
'app_id' => '{app-id}',
1717
'app_secret' => '{app-secret}',
18-
'default_graph_version' => 'v2.5',
18+
'default_graph_version' => 'v2.6',
1919
]);
2020

2121
try {

0 commit comments

Comments
 (0)