This is a library that provides centralised gateway for publishing post updates to social networks. Currently, it supports Facebook, LinkedIn and Twitter.
Recommended way is through Composer
composer require martin-georgiev/social-post
Twitter has limited features for tweet customisation. This means that for tweets only message
and link
values (Message
instance) will be used.
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 can of help.
This package is licensed under the MIT License.