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
## NOTICE: This branch is under active development. For the stable release please use the [5.x branch](https://github.com/facebook/php-graph-sdk/tree/5.x).
This repository contains the open source PHP SDK that allows you to access the Facebook Platform from your PHP app.
1
+
# Facebook Graph PHP SDK
12
2
3
+
This repository contains the open source PHP SDK that allows you to access the Facebook Platform from your PHP app. It is modified to allow compatibility, view the previous SDK version [here](https://github.com/facebookarchive/php-graph-sdk)
13
4
14
5
## Installation
15
6
16
7
The Facebook PHP SDK can be installed with [Composer](https://getcomposer.org/). Run this command:
Why the extra packages? We give you the flexibility to choose what HTTP client (e.g. cURL or Guzzle) to use and what PSR-7 implementation you prefer. Read more about this at the [HTTPlug documentation](http://php-http.readthedocs.io/en/latest/httplug/users.html).
23
-
24
-
25
13
## Usage
26
14
27
-
> **Note:** This version of the Facebook SDK for PHP requires PHP 5.6 or greater.
15
+
> **Note:** This version of the Facebook SDK for PHP requires PHP 8.0 or greater.
28
16
29
17
Simple GET example of a user's profile.
30
18
@@ -38,21 +26,21 @@ $fb = new \Facebook\Facebook([
echo 'Facebook SDK returned an error: ' . $e->getMessage();
58
46
exit;
@@ -64,7 +52,6 @@ echo 'Logged in as ' . $me->getName();
64
52
65
53
Complete documentation, installation instructions, and examples are available [here](docs/).
66
54
67
-
68
55
## Tests
69
56
70
57
1.[Composer](https://getcomposer.org/) is a prerequisite for running the tests. Install composer globally, then run `composer install` to install required files.
@@ -81,17 +68,14 @@ By default the tests will send live HTTP requests to the Graph API. If you are w
For us to accept contributions you will have to first have signed the [Contributor License Agreement](https://developers.facebook.com/opensource/cla). Please see [CONTRIBUTING](https://github.com/facebook/php-graph-sdk/blob/master/CONTRIBUTING.md) for details.
88
-
73
+
For us to accept contributions you will have to first have signed the [Contributor License Agreement](https://developers.facebook.com/opensource/cla). Please see [CONTRIBUTING](https://github.com/joelbutcher/facebook-graph-sdk-php-8/blob/master/CONTRIBUTING.md) for details.
89
74
90
75
## License
91
76
92
-
Please see the [license file](https://github.com/facebook/php-graph-sdk/blob/master/LICENSE) for more information.
93
-
77
+
Please see the [license file](https://github.com/joelbutcher/facebook-graph-sdk-php-8/blob/master/LICENSE) for more information.
0 commit comments