Skip to content

Commit

Permalink
Merge pull request #4 from heniroger/6.x
Browse files Browse the repository at this point in the history
merge to main
  • Loading branch information
heniroger committed Aug 18, 2022
2 parents c44279e + 9fb5588 commit 36a574b
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"]
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]. All
reported by contacting the project team at [email protected] . 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.
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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:https://semver.org/). Randomly breaking public APIs is not an option.

Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<p align="center">
<a href="https://github.com/joelbutcher/facebook-php-graph-sdk/actions">
<img src="https://github.com/joelbutcher/facebook-php-graph-sdk/workflows/tests/badge.svg" alt="Build Status">
<a href="https://github.com/heniroger/facebook-php-graph-sdk/actions">
<img src="https://github.com/heniroger/facebook-php-graph-sdk/workflows/tests/badge.svg" alt="Build Status">
</a>
<a href="https://packagist.org/packages/joelbutcher/facebook-graph-sdk">
<img src="https://img.shields.io/packagist/dt/joelbutcher/facebook-graph-sdk" alt="Total Downloads">
<a href="https://packagist.org/packages/heniroger/facebook-graph-sdk">
<img src="https://img.shields.io/packagist/dt/heniroger/facebook-graph-sdk" alt="Total Downloads">
</a>
<a href="https://packagist.org/packages/joelbutcher/facebook-graph-sdk">
<img src="https://img.shields.io/packagist/v/joelbutcher/facebook-graph-sdk" alt="Latest Stable Version">
<a href="https://packagist.org/packages/heniroger/facebook-graph-sdk">
<img src="https://img.shields.io/packagist/v/heniroger/facebook-graph-sdk" alt="Latest Stable Version">
</a>
<a href="https://packagist.org/packages/joelbutcher/facebook-graph-sdk">
<img src="https://img.shields.io/packagist/l/joelbutcher/facebook-graph-sdk" alt="License">
<a href="https://packagist.org/packages/heniroger/facebook-graph-sdk">
<img src="https://img.shields.io/packagist/l/heniroger/facebook-graph-sdk" alt="License">
</a>
</p>

Expand All @@ -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
Expand Down Expand Up @@ -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 [[email protected]](mailto:[email protected]).
If you have found a security issue, please contact the maintainers directly at [[email protected]](mailto:[email protected]).
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:https://semver.org/) with version 5. Previous to version 5, the SDK did not follow SemVer.
Expand Down
22 changes: 22 additions & 0 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 36a574b

Please sign in to comment.