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
{{ message }}
This repository was archived by the owner on Jan 13, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,16 @@
2
2
3
3
Starting with version 5, the Facebook PHP SDK follows [SemVer](http://semver.org/).
4
4
5
-
6
5
## 5.x
7
6
8
7
Version 5 of the Facebook PHP SDK is a complete refactor of version 4. It comes loaded with lots of new features and a friendlier API.
9
8
9
+
- 5.6.2 (2018-02-15)
10
+
- Strip 'code' param (#913)
11
+
- 5.6.1 (2017-08-16)
12
+
- Fixed doc block syntax that interfered with Doctrine (#844)
13
+
- 5.6.0 (2017-07-23)
14
+
- Bump Graph API version to v2.10 (#829)
10
15
- 5.5.0 (2017-04-20)
11
16
- Added support for batch options (#713)
12
17
- Bump Graph API version to v2.9.
@@ -81,12 +86,10 @@ Version 5 of the Facebook PHP SDK is a complete refactor of version 4. It comes
81
86
- Added `ext-mbstring` to composer require
82
87
- Added this CHANGELOG. Hi! :)
83
88
84
-
85
89
## 4.1-dev
86
90
87
91
Since the Facebook PHP SDK didn't follow SemVer in version 4.x, the master branch was going to be released as 4.1. However, the SDK switched to SemVer in v5.0. So any references on the internet to version 4.1 can be assumed to be an alias to version `5.0.0`
88
92
89
-
90
93
## 4.0.x
91
94
92
95
Version 4.0 of the Facebook PHP SDK did not follow [SemVer](http://semver.org/). The versioning format used was as follows: `4.MAJOR.(MINOR|PATCH)`. The `MINOR` and `PATCH` versions were squashed together.
Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please [read the full text](https://code.facebook.com/codeofconduct) so that you can understand what actions will and will not be tolerated.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,16 @@ Contributing
3
3
4
4
Contributions are **welcome** and will be fully **credited**.
5
5
6
-
We accept contributions via Pull Requests on [Github](https://github.com/facebook/facebook-php-sdk-v4).
6
+
We accept contributions via Pull Requests on [Github](https://github.com/facebook/php-graph-sdk/pull/new).
7
7
8
+
The current stable major version is v5. The v6 is under active development.
9
+
10
+
This means any new feature MUST target v6 (`master` branch).
11
+
12
+
The v5 (`5.x` branch) is maintained only for bug fixes, node/edge updates or documentation improvements.
13
+
14
+
## Code of Conduct
15
+
The code of conduct is described in [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md)
8
16
9
17
## Pull Requests
10
18
@@ -29,14 +37,12 @@ We accept contributions via Pull Requests on [Github](https://github.com/faceboo
29
37
30
38
-**Ensure no coding standards violations** - Please [run PHP Code Sniffer](#running-php-code-sniffer) using the PSR-2 standard before submitting your pull request. A violation will cause the build to fail, so please make sure there are no violations. We can't accept a patch if the build fails.
31
39
32
-
33
40
## Running Tests
34
41
35
42
```bash
36
43
$ ./vendor/bin/phpunit
37
44
```
38
45
39
-
40
46
## Running PHP Code Sniffer
41
47
42
48
You can install [PHP Code Sniffer](https://github.com/squizlabs/PHP_CodeSniffer) globally with composer.
This repository contains the open source PHP SDK that allows you to access the Facebook Platform from your PHP app.
9
8
10
-
11
9
## Installation
12
10
13
11
The Facebook PHP SDK can be installed with [Composer](https://getcomposer.org/). Run this command:
@@ -16,24 +14,25 @@ The Facebook PHP SDK can be installed with [Composer](https://getcomposer.org/).
16
14
composer require facebook/graph-sdk
17
15
```
18
16
19
-
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).
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).
20
18
21
19
## Upgrading to v5.x
22
20
23
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.
24
22
25
-
26
23
## Usage
27
24
28
25
> **Note:** This version of the Facebook SDK for PHP requires PHP 5.4 or greater.
29
26
30
27
Simple GET example of a user's profile.
31
28
32
29
```php
30
+
require_once __DIR__ . '/vendor/autoload.php'; // change path as needed
@@ -63,7 +62,6 @@ echo 'Logged in as ' . $me->getName();
63
62
64
63
Complete documentation, installation instructions, and examples are available [here](docs/).
65
64
66
-
67
65
## Tests
68
66
69
67
1.[Composer](https://getcomposer.org/) is a prerequisite for running the tests. Install composer globally, then run `composer install` to install required files.
@@ -80,17 +78,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.
87
84
88
-
89
85
## License
90
86
91
87
Please see the [license file](https://github.com/facebook/php-graph-sdk/blob/master/LICENSE) for more information.
92
88
93
-
94
89
## Security Vulnerabilities
95
90
96
91
If you have found a security issue, please contact the maintainers directly at [me@sammyk.me](mailto:me@sammyk.me).
0 commit comments