diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index e4bf8c38c..726a52f65 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,6 +1,6 @@ # These are supported funding model platforms -github: [joelbutcher] +github: [heniroger] patreon: # Replace with a single Patreon username open_collective: # Replace with a single Open Collective username ko_fi: # Replace with a single Ko-fi username @@ -9,4 +9,4 @@ community_bridge: # Replace with a single Community Bridge project-name e.g., cl liberapay: # Replace with a single Liberapay username issuehunt: # Replace with a single IssueHunt username otechie: # Replace with a single Otechie username -custom: ["https://paypal.me/joelbutcher"] +custom: ["https://paypal.me/heniroger"] diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index f2e7557da..8daab893a 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -55,7 +55,7 @@ further defined and clarified by project maintainers. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported by contacting the project team at joel@joelbutcher.co.uk. All +reported by contacting the project team at heniroger@yahoo.fr . All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9e35621a5..0cb611ed4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,7 +3,7 @@ Contributing Contributions are **welcome** and will be fully **credited**. -We accept contributions via Pull Requests on [Github](https://github.com/joelbutcher/facebook-graph-sdk/pull/new). +We accept contributions via Pull Requests on [Github](https://github.com/heniroger/facebook-graph-sdk/pull/new). The current stable major version is v6. The v7 is under development. @@ -21,7 +21,7 @@ The code of conduct is described in [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md) - **Add tests!** - Your patch won't be accepted if it doesn't have tests. -- **Document any change in behaviour** - Make sure the README and the [documentation](https://github.com/joelbutcher/facebook-graph-sdk-php-8/tree/master/docs) are kept up-to-date. +- **Document any change in behaviour** - Make sure the README and the [documentation](https://github.com/heniroger/facebook-graph-sdk-php-8/tree/master/docs) are kept up-to-date. - **Consider our release cycle** - We follow [SemVer](http://semver.org/). Randomly breaking public APIs is not an option. diff --git a/README.md b/README.md index 737c9397c..ddacd2114 100644 --- a/README.md +++ b/README.md @@ -3,17 +3,17 @@ 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)

- - Build Status + + Build Status - - Total Downloads + + Total Downloads - - Latest Stable Version + + Latest Stable Version - - License + + License

@@ -23,7 +23,7 @@ This repository contains the open source PHP SDK that allows you to access the F The Facebook PHP SDK can be installed with [Composer](https://getcomposer.org/). Run this command: ```sh -composer require joelbutcher/facebook-graph-sdk +composer require heniroger/facebook-graph-sdk ``` ## Usage @@ -86,12 +86,12 @@ $ ./vendor/bin/phpunit --exclude-group integration ## Contributing -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. +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/heniroger/facebook-graph-sdk-php-8/blob/master/CONTRIBUTING.md) for details. ## License -Please see the [license file](https://github.com/joelbutcher/facebook-graph-sdk-php-8/blob/master/LICENSE) for more information. +Please see the [license file](https://github.com/heniroger/facebook-graph-sdk-php-8/blob/master/LICENSE) for more information. ## Security Vulnerabilities -If you have found a security issue, please contact the maintainers directly at [joel@joelbutcher.co.uk](mailto:joel@joelbutcher.co.uk). +If you have found a security issue, please contact the maintainers directly at [heniroger@yahoo.fr](mailto:heniroger@yahoo.fr). diff --git a/composer.json b/composer.json index 0344596ac..189ec5d63 100644 --- a/composer.json +++ b/composer.json @@ -1,14 +1,14 @@ { - "name": "joelbutcher/facebook-graph-sdk", + "name": "heniroger/facebook-graph-sdk", "description": "Facebook SDK for PHP", "keywords": ["facebook", "sdk", "php"], "type": "library", - "homepage": "https://github.com/joelbutcher/facebook-graph-sdk", + "homepage": "https://github.com/heniroger/facebook-graph-sdk", "license": "MIT", "authors": [ { - "name": "Joel Butcher", - "homepage": "https://github.com/joelbutcher/facebook-graph-sdk/contributors" + "name": "Heni Roger", + "homepage": "https://github.com/heniroger/facebook-graph-sdk/contributors" } ], "config": { diff --git a/docs/getting_started.md b/docs/getting_started.md index 6e3583d1f..051c42d5b 100644 --- a/docs/getting_started.md +++ b/docs/getting_started.md @@ -12,7 +12,7 @@ Whether you're developing a website with Facebook login, creating a Facebook Can The Facebook SDK for PHP is installed with [Composer](#installing-with-composer-recommended). Simply run the following in the root of your project. ``` -composer require joelbutcher/facebook-graph-sdk +composer require heniroger/facebook-graph-sdk ``` > The Facebook SDK starting adhering to [SemVer](http://semver.org/) with version 5. Previous to version 5, the SDK did not follow SemVer. diff --git a/src/Application.php b/src/Application.php index ee8c907e4..d349ce353 100644 --- a/src/Application.php +++ b/src/Application.php @@ -105,6 +105,28 @@ public function unserialize($serialized) { list($id, $secret) = explode('|', $serialized); + $this->__construct($id, $secret); + } + + /** + * Serializes the Application entity as a string. + * + * @return string + */ + public function __serialize() + { + return implode('|', [$this->id, $this->secret]); + } + + /** + * Unserializes a string as an Application entity. + * + * @param string $serialized + */ + public function __unserialize($serialized) + { + list($id, $secret) = explode('|', $serialized); + $this->__construct($id, $secret); } }