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
@@ -14,78 +14,3 @@ The Facebook PHP SDK can be installed with [Composer](https://getcomposer.org/).
14
14
composer require facebook/graph-sdk
15
15
```
16
16
17
-
Please be aware, that there are issues when using the Facebook SDK together with [Guzzle](https://github.com/guzzle/guzzle) 6.x. php-graph-sdk v5.x only works with Guzzle 5.x out of the box. However, [there is a workaround to make it work with Guzzle 6.x](https://www.sammyk.me/how-to-inject-your-own-http-client-in-the-facebook-php-sdk-v5#writing-a-guzzle-6-http-client-implementation-from-scratch).
18
-
19
-
## Upgrading to v5.x
20
-
21
-
Upgrading from v4.x? Facebook PHP SDK v5.x introduced breaking changes. Please [read the upgrade guide](https://www.sammyk.me/upgrading-the-facebook-php-sdk-from-v4-to-v5) before upgrading.
22
-
23
-
## Usage
24
-
25
-
> **Note:** This version of the Facebook SDK for PHP requires PHP 5.4 or greater.
26
-
27
-
Simple GET example of a user's profile.
28
-
29
-
```php
30
-
require_once __DIR__ . '/vendor/autoload.php'; // change path as needed
echo 'Facebook SDK returned an error: ' . $e->getMessage();
56
-
exit;
57
-
}
58
-
59
-
$me = $response->getGraphUser();
60
-
echo 'Logged in as ' . $me->getName();
61
-
```
62
-
63
-
Complete documentation, installation instructions, and examples are available [here](docs/).
64
-
65
-
## Tests
66
-
67
-
1.[Composer](https://getcomposer.org/) is a prerequisite for running the tests. Install composer globally, then run `composer install` to install required files.
68
-
2. Create a test app on [Facebook Developers](https://developers.facebook.com), then create `tests/FacebookTestCredentials.php` from `tests/FacebookTestCredentials.php.dist` and edit it to add your credentials.
69
-
3. The tests can be executed by running this command from the root directory:
70
-
71
-
```bash
72
-
$ ./vendor/bin/phpunit
73
-
```
74
-
75
-
By default the tests will send live HTTP requests to the Graph API. If you are without an internet connection you can skip these tests by excluding the `integration` group.
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.
84
-
85
-
## License
86
-
87
-
Please see the [license file](https://github.com/facebook/php-graph-sdk/blob/master/LICENSE) for more information.
0 commit comments