janwebdev / social-post
Library helping you publish status updates on Facebook and Twitter in easy way
2.0
2024-03-31 13:48 UTC
Requires
- php: ^8.1
- ext-curl: *
- abraham/twitteroauth: ^7.0
- janu-software/facebook-php-sdk: ^v0.2.3
- php-http/curl-client: ^2.3.2
- php-http/message-factory: ^1.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.52
- jakub-onderka/php-parallel-lint: ^1.0
- php-coveralls/php-coveralls: ^2.7
- phpstan/phpstan: ^1.0
- phpunit/phpunit: ^9|^10|^11
- sensiolabs/security-checker: ^6.0|^7.0
- symfony/phpunit-bridge: ^6.0|^7.0
README
What's this?
This is a library that provides API for creating posts on Facebook and Twitter. It was cloned from this repo and refactored to support PHP 8.1+
How to install it?
Recommended way is through Composer
composer require janwebdev/social-post
Additional info
Facebook doesn't support non-expiring user access tokens. Instead, you can obtain a permanent page access token. When using such tokens you can act and post as the page itself. More information about the page access tokens from the official Facebook documentation. Some Stackoverflow answers (here and here) also may help.
License
This package is licensed under the MIT License.