Skip to content

Commit 0db67fe

Browse files
author
Joel Butcher
committed
update readme
1 parent 5e9324b commit 0db67fe

File tree

1 file changed

+11
-27
lines changed

1 file changed

+11
-27
lines changed

README.md

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,18 @@
1-
# Facebook SDK for PHP (v6)
2-
3-
## 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).
4-
5-
[![Build Status](https://img.shields.io/travis/facebook/php-graph-sdk/master.svg)](https://travis-ci.org/facebook/php-graph-sdk)
6-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/facebook/php-graph-sdk/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/facebook/php-graph-sdk/?branch=master)
7-
[![Code Coverage](https://scrutinizer-ci.com/g/facebook/php-graph-sdk/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/facebook/php-graph-sdk/?branch=master)
8-
[![Development Version](http://img.shields.io/badge/Development%20Version-v6.0-orange.svg)](https://packagist.org/packages/facebook/graph-sdk)
9-
10-
11-
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
122

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)
134

145
## Installation
156

167
The Facebook PHP SDK can be installed with [Composer](https://getcomposer.org/). Run this command:
178

189
```sh
19-
composer require facebook/graph-sdk php-http/curl-client guzzlehttp/psr7
10+
composer require joelbutcher/facebook-graph-sdk
2011
```
2112

22-
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-
2513
## Usage
2614

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.
2816
2917
Simple GET example of a user's profile.
3018

@@ -38,21 +26,21 @@ $fb = new \Facebook\Facebook([
3826
//'default_access_token' => '{access-token}', // optional
3927
]);
4028

41-
// Use one of the helper classes to get a Facebook\Authentication\AccessToken entity.
29+
// Use one of the helper classes to get a Facebook\Authentication\AccessToken instance.
4230
// $helper = $fb->getRedirectLoginHelper();
4331
// $helper = $fb->getJavaScriptHelper();
4432
// $helper = $fb->getCanvasHelper();
4533
// $helper = $fb->getPageTabHelper();
4634

4735
try {
48-
// Get the \Facebook\GraphNode\GraphUser object for the current user.
36+
// Get the \Facebook\GraphNodes\GraphUser object for the current user.
4937
// If you provided a 'default_access_token', the '{access-token}' is optional.
5038
$response = $fb->get('/me', '{access-token}');
51-
} catch(\Facebook\Exception\FacebookResponseException $e) {
39+
} catch(\Facebook\Exceptions\FacebookResponseException $e) {
5240
// When Graph returns an error
5341
echo 'Graph returned an error: ' . $e->getMessage();
5442
exit;
55-
} catch(\Facebook\Exception\FacebookSDKException $e) {
43+
} catch(\Facebook\Exceptions\FacebookSDKException $e) {
5644
// When validation fails or other local issues
5745
echo 'Facebook SDK returned an error: ' . $e->getMessage();
5846
exit;
@@ -64,7 +52,6 @@ echo 'Logged in as ' . $me->getName();
6452

6553
Complete documentation, installation instructions, and examples are available [here](docs/).
6654

67-
6855
## Tests
6956

7057
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
8168
$ ./vendor/bin/phpunit --exclude-group integration
8269
```
8370

84-
8571
## Contributing
8672

87-
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.
8974

9075
## License
9176

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.
9478

9579
## Security Vulnerabilities
9680

97-
If you have found a security issue, please contact the maintainers directly at [[email protected]](mailto:[email protected]).
81+
If you have found a security issue, please contact the maintainers directly at [[email protected]](mailto:[email protected]).

0 commit comments

Comments
 (0)