You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 13, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: docs/examples/batch_request.md
+50-47Lines changed: 50 additions & 47 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,12 @@ This example covers sending a batch request with the Facebook SDK for PHP.
7
7
The following example assumes we have the following permissions granted from the user: `user_likes`, `user_events`, `user_photos`, `publish_actions`. The example makes use of [JSONPath to reference specific batch operations](https://developers.facebook.com/docs/graph-api/making-multiple-requests/#operations).
8
8
9
9
```php
10
+
<?php
10
11
$fb = new Facebook\Facebook([
11
-
'app_id' => '{app-id}',
12
-
'app_secret' => '{app-secret}',
13
-
'default_graph_version' => 'v2.8',
14
-
]);
12
+
'app_id' => '{app-id}',
13
+
'app_secret' => '{app-secret}',
14
+
'default_graph_version' => 'v2.8',
15
+
]);
15
16
16
17
// Since all the requests will be sent on behalf of the same user,
17
18
// we'll set the default fallback access token here.
0 commit comments