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
Copy file name to clipboardExpand all lines: docs/examples/access_token_from_javascript.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ This example covers obtaining an access token and signed request from the Facebo
6
6
7
7
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.
Copy file name to clipboardExpand all lines: docs/reference.md
+32-32Lines changed: 32 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,31 +8,31 @@ These classes are at the core of the Facebook SDK for PHP.
8
8
9
9
| Class name | Description |
10
10
| ------------- | ------------- |
11
-
|[`Facebook\\Facebook`](reference/Facebook.md)| The main service object that helps tie all the SDK components together. |
12
-
|[`Facebook\\FacebookApp`](reference/FacebookApp.md)| An entity that represents a Facebook app and is required to send requests to Graph. |
11
+
|[`Facebook\Facebook`](reference/Facebook.md)| The main service object that helps tie all the SDK components together. |
12
+
|[`Facebook\FacebookApp`](reference/FacebookApp.md)| An entity that represents a Facebook app and is required to send requests to Graph. |
13
13
14
14
# Authentication
15
15
16
16
These classes facilitate authenticating a Facebook user with OAuth 2.0.
17
17
18
18
| Class name | Description |
19
19
| ------------- | ------------- |
20
-
|[`Facebook\\Helpers\\FacebookRedirectLoginHelper`](reference/FacebookRedirectLoginHelper.md)| An OAuth 2.0 service to obtain a user access token from a redirect using a "Log in with Facebook" link. |
21
-
|[`Facebook\\Authentication\\AccessToken`](reference/AccessToken.md)| An entity that represents an access token. |
22
-
|`Facebook\\Authentication\\AccessTokenMetadata`| An entity that represents metadata from an access token. |
23
-
|`Facebook\\Authentication\\OAuth2Client`| An OAuth 2.0 client that sends and receives HTTP requests related to user authentication. |
20
+
|[`Facebook\Helpers\FacebookRedirectLoginHelper`](reference/FacebookRedirectLoginHelper.md)| An OAuth 2.0 service to obtain a user access token from a redirect using a "Log in with Facebook" link. |
21
+
|[`Facebook\Authentication\AccessToken`](reference/AccessToken.md)| An entity that represents an access token. |
22
+
|`Facebook\Authentication\AccessTokenMetadata`| An entity that represents metadata from an access token. |
23
+
|`Facebook\Authentication\OAuth2Client`| An OAuth 2.0 client that sends and receives HTTP requests related to user authentication. |
24
24
25
25
# Requests and Responses
26
26
27
27
These classes are used in a Graph API request/response cycle.
28
28
29
29
| Class name | Description |
30
30
| ------------- | ------------- |
31
-
|[`Facebook\\FacebookRequest`](reference/FacebookRequest.md)| An entity that represents an HTTP request to be sent to Graph. |
32
-
|[`Facebook\\FacebookResponse`](reference/FacebookResponse.md)| An entity that represents an HTTP response from Graph. |
33
-
|[`Facebook\\FacebookBatchRequest`](reference/FacebookBatchRequest.md)| An entity that represents an HTTP batch request to be sent to Graph. |
34
-
|[`Facebook\\FacebookBatchResponse`](reference/FacebookBatchResponse.md)| An entity that represents an HTTP response from Graph after sending a batch request. |
35
-
|[`Facebook\\FacebookClient`](reference/FacebookClient.md)| A service object that sends HTTP requests and receives HTTP responses to and from the Graph API. |
31
+
|[`Facebook\FacebookRequest`](reference/FacebookRequest.md)| An entity that represents an HTTP request to be sent to Graph. |
32
+
|[`Facebook\FacebookResponse`](reference/FacebookResponse.md)| An entity that represents an HTTP response from Graph. |
33
+
|[`Facebook\FacebookBatchRequest`](reference/FacebookBatchRequest.md)| An entity that represents an HTTP batch request to be sent to Graph. |
34
+
|[`Facebook\FacebookBatchResponse`](reference/FacebookBatchResponse.md)| An entity that represents an HTTP response from Graph after sending a batch request. |
35
+
|[`Facebook\FacebookClient`](reference/FacebookClient.md)| A service object that sends HTTP requests and receives HTTP responses to and from the Graph API. |
36
36
37
37
38
38
# Signed Requests
@@ -41,19 +41,19 @@ Classes to help obtain and manage signed requests.
41
41
42
42
| Class name | Description |
43
43
| ------------- | ------------- |
44
-
|[`Facebook\\Helpers\\FacebookJavaScriptHelper`](reference/FacebookJavaScriptHelper.md)| Used to obtain an access token or signed request from the cookie set by the JavaScript SDK. |
45
-
|[`Facebook\\Helpers\\FacebookCanvasHelper`](reference/FacebookCanvasHelper.md)| Used to obtain an access token or signed request from within the context of an app canvas. |
46
-
|[`Facebook\\Helpers\\FacebookPageTabHelper`](reference/FacebookPageTabHelper.md)| Used to obtain an access token or signed request from within the context of a page tab. |
47
-
|[`Facebook\\SignedRequest`](reference/SignedRequest.md)| An entity that represents a signed request. |
44
+
|[`Facebook\Helpers\FacebookJavaScriptHelper`](reference/FacebookJavaScriptHelper.md)| Used to obtain an access token or signed request from the cookie set by the JavaScript SDK. |
45
+
|[`Facebook\Helpers\FacebookCanvasHelper`](reference/FacebookCanvasHelper.md)| Used to obtain an access token or signed request from within the context of an app canvas. |
46
+
|[`Facebook\Helpers\FacebookPageTabHelper`](reference/FacebookPageTabHelper.md)| Used to obtain an access token or signed request from within the context of a page tab. |
47
+
|[`Facebook\SignedRequest`](reference/SignedRequest.md)| An entity that represents a signed request. |
48
48
49
49
# Core Exceptions
50
50
51
51
These are the core exceptions that the SDK will throw when an error occurs.
52
52
53
53
| Class name | Description |
54
54
| ------------- | ------------- |
55
-
|[`Facebook\\Exceptions\\FacebookSDKException`](reference/FacebookSDKException.md)| The base exception to all exceptions thrown by the SDK. Thrown when there is a non-Graph-response-related error. |
56
-
|[`Facebook\\Exceptions\\FacebookResponseException`](reference/FacebookResponseException.md)| The base exception to all Graph error responses. This exception is never thrown directly. |
55
+
|[`Facebook\Exceptions\FacebookSDKException`](reference/FacebookSDKException.md)| The base exception to all exceptions thrown by the SDK. Thrown when there is a non-Graph-response-related error. |
56
+
|[`Facebook\Exceptions\FacebookResponseException`](reference/FacebookResponseException.md)| The base exception to all Graph error responses. This exception is never thrown directly. |
57
57
58
58
59
59
# Graph Nodes and Edges
@@ -62,14 +62,14 @@ Graph nodes are collections that represent nodes returned by the Graph API. And
62
62
63
63
| Class name | Description |
64
64
| ------------- | ------------- |
65
-
|[`Facebook\\GraphNodes\\GraphNode`](reference/GraphNode.md)| The base collection object that represents a generic node. |
66
-
|[`Facebook\\GraphNodes\\GraphEdge`](reference/GraphEdge.md)| A collection of GraphNode\'s with special methods to help paginate over the edge. |
67
-
|[`Facebook\\GraphNodes\\GraphAchievement`](reference/GraphNode.md#graphachievement-instance-methods)| A collection that represents an Achievement node. |
68
-
|[`Facebook\\GraphNodes\\GraphAlbum`](reference/GraphNode.md#graphalbum-instance-methods)| A collection that represents an Album node. |
69
-
|[`Facebook\\GraphNodes\\GraphLocation`](reference/GraphNode.md#graphlocation-instance-methods)| A collection that represents a Location node. |
70
-
|[`Facebook\\GraphNodes\\GraphPage`](reference/GraphNode.md#graphpage-instance-methods)| A collection that represents a Page node. |
71
-
|[`Facebook\\GraphNodes\\GraphPicture`](reference/GraphNode.md#graphpicture-instance-methods)| A collection that represents a Picture node. |
72
-
|[`Facebook\\GraphNodes\\GraphUser`](reference/GraphNode.md#graphuser-instance-methods)| A collection that represents a User node. |
65
+
|[`Facebook\GraphNodes\GraphNode`](reference/GraphNode.md)| The base collection object that represents a generic node. |
66
+
|[`Facebook\GraphNodes\GraphEdge`](reference/GraphEdge.md)| A collection of GraphNode\'s with special methods to help paginate over the edge. |
67
+
|[`Facebook\GraphNodes\GraphAchievement`](reference/GraphNode.md#graphachievement-instance-methods)| A collection that represents an Achievement node. |
68
+
|[`Facebook\GraphNodes\GraphAlbum`](reference/GraphNode.md#graphalbum-instance-methods)| A collection that represents an Album node. |
69
+
|[`Facebook\GraphNodes\GraphLocation`](reference/GraphNode.md#graphlocation-instance-methods)| A collection that represents a Location node. |
70
+
|[`Facebook\GraphNodes\GraphPage`](reference/GraphNode.md#graphpage-instance-methods)| A collection that represents a Page node. |
71
+
|[`Facebook\GraphNodes\GraphPicture`](reference/GraphNode.md#graphpicture-instance-methods)| A collection that represents a Picture node. |
72
+
|[`Facebook\GraphNodes\GraphUser`](reference/GraphNode.md#graphuser-instance-methods)| A collection that represents a User node. |
73
73
74
74
75
75
# File Uploads
@@ -78,17 +78,17 @@ These are entities that represent files to be uploaded with a Graph request.
78
78
79
79
| Class name | Description |
80
80
| ------------- | ------------- |
81
-
|[`Facebook\\FileUpload\\FacebookFile`](reference/FacebookFile.md)| Represents a generic file to be uploaded to the Graph API. |
82
-
|[`Facebook\\FileUpload\\FacebookVideo`](reference/FacebookVideo.md)| Represents a video file to be uploaded to the Graph API. |
81
+
|[`Facebook\FileUpload\FacebookFile`](reference/FacebookFile.md)| Represents a generic file to be uploaded to the Graph API. |
82
+
|[`Facebook\FileUpload\FacebookVideo`](reference/FacebookVideo.md)| Represents a video file to be uploaded to the Graph API. |
83
83
84
84
# Extensibility
85
85
86
86
You can overwrite certain functionality of the SDK by coding to an interface and injecting an instance of your custom functionality.
87
87
88
88
| Interface name | Description |
89
89
| ------------- | ------------- |
90
-
|`Facebook\\HttpClients\\ FacebookHttpClientInterface`| An interface to code your own HTTP client implementation. |
91
-
|`Facebook\\Http\\GraphRawResponse`| An entity that is returned from an instance of a `FacebookHttpClientInterface` that represents a raw HTTP response from the Graph API. |
92
-
|[`Facebook\\PersistentData\\PersistentDataInterface`](reference/PersistentDataInterface.md)| An interface to code your own persistent data storage implementation. |
93
-
|[`Facebook\\Url\\UrlDetectionInterface`](reference/UrlDetectionInterface.md)| An interface to code your own URL detection logic. |
94
-
|[`Facebook\\PseudoRandomString\\ PseudoRandomStringGeneratorInterface`](reference/PseudoRandomStringGeneratorInterface.md)| An interface to code your own cryptographically secure pseudo-random string generator. |
90
+
|`Facebook\HttpClients\ FacebookHttpClientInterface`| An interface to code your own HTTP client implementation. |
91
+
|`Facebook\Http\GraphRawResponse`| An entity that is returned from an instance of a `FacebookHttpClientInterface` that represents a raw HTTP response from the Graph API. |
92
+
|[`Facebook\PersistentData\PersistentDataInterface`](reference/PersistentDataInterface.md)| An interface to code your own persistent data storage implementation. |
93
+
|[`Facebook\Url\UrlDetectionInterface`](reference/UrlDetectionInterface.md)| An interface to code your own URL detection logic. |
94
+
|[`Facebook\PseudoRandomString\ PseudoRandomStringGeneratorInterface`](reference/PseudoRandomStringGeneratorInterface.md)| An interface to code your own cryptographically secure pseudo-random string generator. |
Copy file name to clipboardExpand all lines: docs/reference/FacebookApp.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
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.
4
4
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.",
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.",
0 commit comments