Skip to content

Commit cb4a352

Browse files
nayafiaSammyK
authored andcommitted
fix blockquotes
1 parent e4270f4 commit cb4a352

File tree

5 files changed

+13
-30
lines changed

5 files changed

+13
-30
lines changed

docs/examples/batch_request.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ My next 2 events are House Warming Party,Some Foo Event.
9696

9797
It should also contain a response containing two photos from the user.
9898

99-
> content: "The response object should return a `null` response for any request that was pointed to with JSONPath as is [the behaviour of the batch functionality of the Graph API](https://developers.facebook.com/docs/graph-api/making-multiple-requests/#operations).",
100-
> type: 'warning',
99+
> **Warning:** The response object should return a `null` response for any request that was pointed to with JSONPath as is [the behaviour of the batch functionality of the Graph API](https://developers.facebook.com/docs/graph-api/making-multiple-requests/#operations).
101100
102101
## Multiple User Example
103102

docs/examples/upload_video.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ This example covers uploading & posting a video to a user's timeline with the Fa
44

55
## Example
66

7-
> content: "Before you upload, check out the [video publishing options & requirements](https://developers.facebook.com/docs/graph-api/reference/video#publishing) for the specific video endpoint you want to publish to.",
8-
> type: 'warning',
7+
> **Warning:** Before you upload, check out the [video publishing options & requirements](https://developers.facebook.com/docs/graph-api/reference/video#publishing) for the specific video endpoint you want to publish to.
98
109
The following example will upload a video in chunks using the [resumable upload](https://developers.facebook.com/docs/graph-api/video-uploads#resumable) feature added in Graph v2.3.
1110

docs/getting_started.md

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,7 @@ require_once __DIR__ . '/vendor/autoload.php';
4141

4242
First, download the source code and unzip it wherever you like in your project.
4343

44-
%FB(devsite:markdown-wiki:button {
45-
text: 'Download the SDK for PHP v5.0',
46-
href: 'https://github.com/facebook/facebook-php-sdk-v4/archive/5.0-dev.zip',
47-
size: 'large',
48-
use: 'special',
49-
})
44+
[Download the SDK for PHP v5.0](https://github.com/facebook/facebook-php-sdk-v4/archive/5.0-dev.zip)
5045

5146
Then include the autoloader provided in the SDK at the top of your script.
5247

@@ -61,8 +56,7 @@ The autoloader should be able to auto-detect the proper location of the source c
6156

6257
The source code includes myriad files that aren't necessary for use in a production environment. If you'd like to strip out everything except the core files, follow this example.
6358

64-
> content: "For this example we'll assume the root of your website is `/var/html`.",
65-
> type: 'info',
59+
> For this example we'll assume the root of your website is `/var/html`.
6660
6761
After downloading the source code with the button above, extract the files in a temporary directory.
6862

@@ -85,8 +79,7 @@ require_once __DIR__ . '/facebook-sdk-v5/autoload.php';
8579

8680
## Configuration and setup
8781

88-
> content: "This assumes you have already created and configured a Facebook App, which you can obtain from the [App Dashboard](/apps).",
89-
> type: 'warning',
82+
> **Warning:** This assumes you have already created and configured a Facebook App, which you can obtain from the [App Dashboard](/apps).
9083
9184
Before we can send requests to the Graph API, we need to load our app configuration into the `Facebook\Facebook` service.
9285

@@ -100,8 +93,7 @@ $fb = new Facebook\Facebook([
10093

10194
You'll need to replace the `{app-id}` and `{app-secret}` with your Facebook app's ID and secret which can be obtained from the [app settings tab](/apps).
10295

103-
> content: "It's important that you specify a `default_graph_version` value as this will give you more control over which version of Graph you want to use. If you don't specify a `default_graph_version`, the SDK for PHP will choose one for you and it might not be one that is compatible with your app.",
104-
> type: 'warning',
96+
> **Warning:** It's important that you specify a `default_graph_version` value as this will give you more control over which version of Graph you want to use. If you don't specify a `default_graph_version`, the SDK for PHP will choose one for you and it might not be one that is compatible with your app.
10597
10698
The `Facebook\Facebook` service ties all the components of the SDK for PHP together. [See the full reference for the `Facebook\Facebook` service](reference/Facebook.md).
10799

@@ -116,8 +108,7 @@ Most all request made to the Graph API require an access token. We can obtain us
116108

117109
For most websites, you'll use the [`Facebook\Helpers\FacebookRedirectLoginHelper`](reference/FacebookRedirectLoginHelper.md) to generate a login URL with the `getLoginUrl()` method. The link will take the user to an app authorization screen and upon approval, will redirect them back to a URL that you specified. On the redirect callback page we can obtain the user access token as an [`AccessToken`](reference/AccessToken.md) entity.
118110

119-
> content: "For this example we'll assume `login.php` will present the login link and the user will be redirected to `login-callback.php` where we will obtain the access token.",
120-
> type: 'info',
111+
> For this example we'll assume `login.php` will present the login link and the user will be redirected to `login-callback.php` where we will obtain the access token.
121112
122113
```php
123114
# login.php
@@ -130,8 +121,7 @@ $loginUrl = $helper->getLoginUrl('http://{your-website}/login-callback.php', $pe
130121
echo '<a href="' . $loginUrl . '">Log in with Facebook!</a>';
131122
```
132123

133-
> content: "The `FacebookRedirectLoginHelper` makes use of sessions to store a [CSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery) value. You need to make sure you have sessions enabled before invoking the `getLoginUrl()` method. This is usually done automatically in most web frameworks, but if you're not using a web framework you can add [`session_start();`](http://php.net/session_start) to the top of your `login.php` & `login-callback.php` scripts.",
134-
> type: 'warning',
124+
> **Warning:** The `FacebookRedirectLoginHelper` makes use of sessions to store a [CSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery) value. You need to make sure you have sessions enabled before invoking the `getLoginUrl()` method. This is usually done automatically in most web frameworks, but if you're not using a web framework you can add [`session_start();`](http://php.net/session_start) to the top of your `login.php` & `login-callback.php` scripts.
135125
136126
```php
137127
# login-callback.php
@@ -164,8 +154,7 @@ if (isset($accessToken)) {
164154

165155
If your app is on Facebook Canvas, use the `getAccessToken()` method on [`Facebook\Helpers\FacebookCanvasHelper`](reference/FacebookCanvasHelper.md) to get an [`AccessToken`](reference/AccessToken.md) entity for the user.
166156

167-
> content: "The `FacebookCanvasHelper` will detect a [signed request](reference.md#signed-requests) for you and attempt to obtain an access token using the payload data from the signed request. The signed request will only contain the data needed to obtain an access token if the user has already authorized your app sometime in the past. If they have not yet authorized your app the `getAccessToken()` will return `null` and you will need to log the user in with either the [redirect method](#authentication-redirect) or by using the [SDK for JavaScript](https://developers.facebook.com/docs/javascript) and then use the SDK for PHP to [obtain the access token from the cookie](#authentication-javascript) the SDK for JavaScript set.",
168-
> type: 'warning',
157+
> **Warning:** The `FacebookCanvasHelper` will detect a [signed request](reference.md#signed-requests) for you and attempt to obtain an access token using the payload data from the signed request. The signed request will only contain the data needed to obtain an access token if the user has already authorized your app sometime in the past. If they have not yet authorized your app the `getAccessToken()` will return `null` and you will need to log the user in with either the [redirect method](#authentication-redirect) or by using the [SDK for JavaScript](https://developers.facebook.com/docs/javascript) and then use the SDK for PHP to [obtain the access token from the cookie](#authentication-javascript) the SDK for JavaScript set.
169158
170159
```php
171160
# example-canvas-app.php
@@ -189,8 +178,7 @@ if (isset($accessToken)) {
189178
}
190179
```
191180

192-
> content: "If your app exists within the context of a Page tab, you can obtain an access token using the example above since a Page tab is very similar to a Facebook Canvas app. But if you'd like to use a Page-tab-specific helper, you can use the [`Facebook\Helpers\FacebookPageTabHelper`](reference/FacebookPageTabHelper.md)",
193-
> type: 'info',
181+
> If your app exists within the context of a Page tab, you can obtain an access token using the example above since a Page tab is very similar to a Facebook Canvas app. But if you'd like to use a Page-tab-specific helper, you can use the [`Facebook\Helpers\FacebookPageTabHelper`](reference/FacebookPageTabHelper.md)
194182
195183

196184
### Obtaining an access token from the SDK for JavaScript
@@ -219,8 +207,7 @@ if (isset($accessToken)) {
219207
}
220208
```
221209

222-
> content: "Make sure you set the `{cookie:true}` option when you [initialize the SDK for JavaScript](https://developers.facebook.com/docs/javascript/reference/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.",
223-
> type: 'warning',
210+
> **Warning:** Make sure you set the `{cookie:true}` option when you [initialize the SDK for JavaScript](https://developers.facebook.com/docs/javascript/reference/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.
224211
225212
## Extending the access token
226213

docs/reference/FacebookApp.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
In order to make requests to the Graph API, you need to [create a Facebook app](/apps) and obtain the app ID and the app secret. The `Facebook\FacebookApp` entity represents the Facebook app that is making the requests to the Graph API.
44

5-
> content: "It is quite uncommon to work with the `FacebookApp` entity directly since the `Facebook\Facebook` service handles injecting it into the required classes for you.",
6-
> type: 'warning',
5+
> **Warning:** It is quite uncommon to work with the `FacebookApp` entity directly since the `Facebook\Facebook` service handles injecting it into the required classes for you.
76
87
## Facebook\FacebookApp
98

docs/reference/FacebookRedirectLoginHelper.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ $loginUrl = $helper->getLoginUrl('http://{your-website}/login-callback.php', $pe
3737
echo '<a href="' . $loginUrl . '">Log in with Facebook!</a>';
3838
```
3939

40-
> content: "The `FacebookRedirectLoginHelper` makes use of sessions to store a [CSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery) value. You need to make sure you have sessions enabled before invoking the `getLoginUrl()` method. This is usually done automatically in most web frameworks, but if you're not using a web framework you can add [`session_start();`](http://php.net/session_start) to the top of your `login.php` & `login-callback.php` scripts. You can overwrite the default session handling - see [extensibility points](#extensibility-points) below.",
41-
> type: 'warning',
40+
> **Warning:** The `FacebookRedirectLoginHelper` makes use of sessions to store a [CSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery) value. You need to make sure you have sessions enabled before invoking the `getLoginUrl()` method. This is usually done automatically in most web frameworks, but if you're not using a web framework you can add [`session_start();`](http://php.net/session_start) to the top of your `login.php` & `login-callback.php` scripts. You can overwrite the default session handling - see [extensibility points](#extensibility-points) below.
4241
4342
Then, in your callback page (at the redirect url) when Facebook sends the user back:
4443

0 commit comments

Comments
 (0)