Skip to content

Commit 003fe14

Browse files
teldosasSammyK
authored andcommitted
Fix some links in the docs
1 parent cb4a352 commit 003fe14

File tree

5 files changed

+22
-21
lines changed

5 files changed

+22
-21
lines changed

Diff for: docs/getting_started.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ require_once __DIR__ . '/facebook-sdk-v5/autoload.php';
7979

8080
## Configuration and setup
8181

82-
> **Warning:** This assumes you have already created and configured a Facebook App, which you can obtain from the [App Dashboard](/apps).
82+
> **Warning:** This assumes you have already created and configured a Facebook App, which you can obtain from the [App Dashboard](https://developers.facebook.com/apps).
8383
8484
Before we can send requests to the Graph API, we need to load our app configuration into the `Facebook\Facebook` service.
8585

@@ -91,7 +91,7 @@ $fb = new Facebook\Facebook([
9191
]);
9292
```
9393

94-
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).
94+
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](https://developers.facebook.com/apps).
9595

9696
> **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.
9797
@@ -154,7 +154,7 @@ if (isset($accessToken)) {
154154

155155
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.
156156

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.
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](#obtaining-an-access-token-from-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](#obtaining-an-access-token-from-the-sdk-for-javascript) the SDK for JavaScript set.
158158
159159
```php
160160
# example-canvas-app.php
@@ -207,7 +207,7 @@ if (isset($accessToken)) {
207207
}
208208
```
209209

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.
210+
> **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.
211211
212212
## Extending the access token
213213

@@ -255,7 +255,7 @@ echo 'Logged in as ' . $userNode->getName();
255255

256256
The `get()` method will return a [`Facebook\FacebookResponse`](reference/FacebookResponse.md) which is an entity that represents an HTTP response from the Graph API.
257257

258-
To get the response in the form of a nifty collection, we call `getGraphUser()` which returns a [`Facebook\GraphNodes\GraphUser`](reference/GraphNode.md#graphnode-instance-methods) entity which represents a user node.
258+
To get the response in the form of a nifty collection, we call `getGraphUser()` which returns a [`Facebook\GraphNodes\GraphUser`](reference/GraphNode.md#graphuser-instance-methods) entity which represents a user node.
259259

260260
If you don't care about fancy collections and just want the response as a plain-old array, you can call the `getDecodedBody()` method on the `FacebookResponse` entity.
261261

Diff for: docs/reference/FacebookApp.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# FacebookApp for the Facebook SDK for PHP
22

3-
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.
3+
In order to make requests to the Graph API, you need to [create a Facebook app](https://developers.facebook.com/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

55
> **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.
66

Diff for: docs/reference/FacebookRequest.md

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ echo 'User name: ' . $graphNode['name'];
5959
```php
6060
public setAccessToken(string|Facebook\AccessToken $accessToken)
6161
```
62+
Sets the access token to be used for the request.
6263

6364
### getAccessToken()
6465
```php

Diff for: docs/reference/GraphNode.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ A `Facebook\GraphNodes\GraphNode` is a collection that represents a node returne
66

77
This base class has several subclasses:
88

9-
[__GraphUser__](#user-instance-methods)
10-
[__GraphPage__](#page-instance-methods)
11-
[__GraphAlbum__](#album-instance-methods)
12-
[__GraphLocation__](#location-instance-methods)
13-
[__GraphPicture__](#picture-instance-methods)
14-
[__GraphAchievement__](#achievement-instance-methods)
9+
[__GraphUser__](#graphuser-instance-methods)
10+
[__GraphPage__](#graphpage-instance-methods)
11+
[__GraphAlbum__](#graphalbum-instance-methods)
12+
[__GraphLocation__](#graphlocation-instance-methods)
13+
[__GraphPicture__](#graphpicture-instance-methods)
14+
[__GraphAchievement__](#graphachievement-instance-methods)
1515

1616
`GraphNode`s are obtained from a [`Facebook\FacebookResponse`](FacebookResponse.md) object which represents an HTTP response from the Graph API.
1717

@@ -100,9 +100,9 @@ The following properties on the `GraphUser` collection will get automatically ca
100100

101101
| Property | GraphNode subtype |
102102
| ------------- | ------------- |
103-
| `hometown` | [`Facebook\GraphNodes\GraphPage`](#page-instance-methods) |
104-
| `location` | [`Facebook\GraphNodes\GraphPage`](#page-instance-methods) |
105-
| `significant_other` | [`Facebook\GraphNodes\GraphUser`](#user-instance-methods) |
103+
| `hometown` | [`Facebook\GraphNodes\GraphPage`](#graphpage-instance-methods) |
104+
| `location` | [`Facebook\GraphNodes\GraphPage`](#graphpage-instance-methods) |
105+
| `significant_other` | [`Facebook\GraphNodes\GraphUser`](#graphuser-instance-methods) |
106106

107107
All getter methods return `null` if the property does not exist on the node.
108108

@@ -176,9 +176,9 @@ The following properties on the `GraphPage` collection will get automatically ca
176176

177177
| Property | GraphNode subtype |
178178
| ------------- | ------------- |
179-
| `best_page` | [`Facebook\GraphNodes\GraphPage`](#page-instance-methods) |
180-
| `global_brand_parent_page` | [`Facebook\GraphNodes\GraphPage`](#page-instance-methods) |
181-
| `location` | [`Facebook\GraphNodes\GraphLocation`](#location-instance-methods) |
179+
| `best_page` | [`Facebook\GraphNodes\GraphPage`](#graphpage-instance-methods) |
180+
| `global_brand_parent_page` | [`Facebook\GraphNodes\GraphPage`](graph#page-instance-methods) |
181+
| `location` | [`Facebook\GraphNodes\GraphLocation`](#graphlocation-instance-methods) |
182182

183183

184184
All getter methods return `null` if the property does not exist on the node.
@@ -241,8 +241,8 @@ The following properties on the `GraphAlbum` collection will get automatically c
241241

242242
| Property | GraphNode subtype |
243243
| ------------- | ------------- |
244-
| `from` | [`Facebook\GraphNodes\GraphUser`](#user-instance-methods) |
245-
| `place` | [`Facebook\GraphNodes\GraphPage`](#page-instance-methods) |
244+
| `from` | [`Facebook\GraphNodes\GraphUser`](#graphuser-instance-methods) |
245+
| `place` | [`Facebook\GraphNodes\GraphPage`](#graphpage-instance-methods) |
246246

247247
All getter methods return `null` if the property does not exist on the node.
248248

Diff for: docs/reference/SignedRequest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The `Facebook\SignedRequest` entity represents a signed request.
44

55
## Facebook\SignedRequest
66

7-
[Signed requests](https://developers.facebook.com/docs/facebook-login/using-login-with-games#checklogin) contain payloads of data that can be validated against a hash signature to ensure it is from Facebook. The `Facebook\SignedRequest` entity can validate a signed request signature and decode the payload.
7+
[Signed requests](https://developers.facebook.com/docs/games/gamesonfacebook/login#detectingloginstatus) contain payloads of data that can be validated against a hash signature to ensure it is from Facebook. The `Facebook\SignedRequest` entity can validate a signed request signature and decode the payload.
88

99
To instantiate a new `Facebook\SignedRequest` entity, pass the [`Facebook\FacebookApp`](FacebookApp.md) entity and raw signed request to the constructor.
1010

0 commit comments

Comments
 (0)