Skip to content

Commit ad20f47

Browse files
nayafiaSammyK
authored andcommitted
add syntax highlighting
1 parent fc9cfa1 commit ad20f47

33 files changed

+290
-290
lines changed

docs/examples/access_token_from_canvas.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This example covers obtaining an access token and signed request from within the
66

77
A signed request will be sent to your app via the HTTP POST method within the context of app canvas. The PHP SDK provides a helper to easily obtain, validate & decode the signed request. If the proper OAuth data exists in the signed request payload data, an attempt can be made to obtain an access token from the Graph API.
88

9-
```
9+
```php
1010
$fb = new Facebook\Facebook([
1111
'app_id' => '{app-id}',
1212
'app_secret' => '{app-secret}',

docs/examples/access_token_from_javascript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This example covers obtaining an access token and signed request from the Facebo
66

77
In order to have the JavaScript SDK set a cookie containing a signed request (which contains information about the logged in user), you must first initialize the JavaScript SDK with the `{cookie: true}` option.
88

9-
```
9+
```php
1010
<html>
1111
<body>
1212

@@ -47,7 +47,7 @@ In order to have the JavaScript SDK set a cookie containing a signed request (wh
4747

4848
After the user successfully logs in, redirect the user (or make an AJAX request) to a PHP script that obtains an access token from the signed request that exists in the cookie.
4949

50-
```
50+
```php
5151
# /js-login.php
5252
$fb = new Facebook\Facebook([
5353
'app_id' => '{app-id}',

docs/examples/access_token_from_page_tab.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This example covers obtaining an access token and signed request from within the
66

77
Page tabs behave much like the app canvas. The PHP SDK provides a helper for page tabs that delivers specific methods unique to page tabs.
88

9-
```
9+
```php
1010
$fb = new Facebook\Facebook([
1111
'app_id' => '{app-id}',
1212
'app_secret' => '{app-secret}',

docs/examples/batch_request.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This example covers sending a batch request with the Facebook SDK for PHP.
66

77
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).
88

9-
```
9+
```php
1010
$fb = new Facebook\Facebook([
1111
'app_id' => '{app-id}',
1212
'app_secret' => '{app-secret}',
@@ -86,7 +86,7 @@ There five requests being made in this batch requests.
8686

8787
If the request was successful, the user should have a new status update similar to this:
8888

89-
```
89+
```php
9090
My name is Foo User.
9191

9292
I like this page: Facebook Developers.
@@ -103,7 +103,7 @@ It should also contain a response containing two photos from the user.
103103

104104
Since the requests sent in a batch are unrelated by default, we can make requests on behalf of multiple users and pages in the same batch request.
105105

106-
```
106+
```php
107107
$fb = new Facebook\Facebook([
108108
'app_id' => '{app-id}',
109109
'app_secret' => '{app-secret}',

docs/examples/batch_upload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The Graph API supports [file uploads in batch requests](https://developers.faceb
88

99
The following example will upload two photos and one video.
1010

11-
```
11+
```php
1212
$fb = new Facebook\Facebook([
1313
'app_id' => '{app-id}',
1414
'app_secret' => '{app-secret}',

docs/examples/facebook_login.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ In this example, the PHP script that generates the login link is called `/login.
1010

1111
## /login.php
1212

13-
```
13+
```php
1414
$fb = new Facebook\Facebook([
1515
'app_id' => '{app-id}',
1616
'app_secret' => '{app-secret}',
@@ -27,7 +27,7 @@ echo '<a href="' . $loginUrl . '">Log in with Facebook!</a>';
2727

2828
## /fb-callback.php
2929

30-
```
30+
```php
3131
$fb = new Facebook\Facebook([
3232
'app_id' => '{app-id}',
3333
'app_secret' => '{app-secret}',

docs/examples/pagination_basic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The Graph API supports [several methods to paginate over response data](https://
88

99
In this example we'll pull five entries from a user's feed (assuming the user approved the `read_stream` permission for your app). Then we'll use the `next()` method to grab the next page of results. Naturally you'd provide some sort of pagination navigation in your app, but this is just an example to get you started.
1010

11-
```
11+
```php
1212
$fb = new Facebook\Facebook([
1313
'app_id' => '{app-id}',
1414
'app_secret' => '{app-secret}',

docs/examples/post_links.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ For more information, see the documentation for [`Facebook\Facebook`](../referen
88

99
## Example
1010

11-
```
11+
```php
1212
$fb = new Facebook\Facebook([
1313
'app_id' => '{app-id}',
1414
'app_secret' => '{app-secret}',

docs/examples/retrieve_user_profile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ For more information, see the documentation for [`Facebook\Facebook`](../referen
88

99
## Example
1010

11-
```
11+
```php
1212
$fb = new Facebook\Facebook([
1313
'app_id' => '{app-id}',
1414
'app_secret' => '{app-secret}',

docs/examples/upload_photo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ For more information, see the documentation for [`Facebook\Facebook`](../referen
88

99
## Example
1010

11-
```
11+
```php
1212
$fb = new Facebook\Facebook([
1313
'app_id' => '{app-id}',
1414
'app_secret' => '{app-secret}',

0 commit comments

Comments
 (0)