sandklock / socialall
SocialAll is one API for all networks
Installs: 37
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 3
Open Issues: 0
pkg:composer/sandklock/socialall
Requires
- php: >=5.2.0
This package is not auto-updated.
Last update: 2025-10-12 00:30:55 UTC
README
SocialAll API library for PHP
Note: SocialAll is an unified API for 15+ popular social networks that supports social login, posting (supported video & photo), messaging and friends inviting.
Installation
$ composer require sandklock/socialall
Go to SocialAll and register an application for free.
Usage
require_once 'vendor/autoload.php'; $sa = new SocialAll\SocialAll($app_id, $secret_key); error_log($sa->getLoginUrl('facebook', 'http://yourdomain.com/callback'));
API
$sa->getLoginUrl($network, $callback_url)
$network--string-- see networks$callback_url--string- returns
stringlogin url
$sa->getUser($token, $callback)
$token--string$callback--function ($err, $user)
$sa->getFriends($token, $callback)
$token--string-- token given by SocialAll$callback--function ($err, $friends)
$sa->postStream($token, $message, $callback)
$token--string$message--string$callback--function ($err)
$sa->sendMessage($token, $message, $friends, $title, $callback)
$token--string$message--string$friends--array-- list of friend's IDs$title--string$callback--function ($err)
Networks
disqusfacebookfoursquaregithubgooglelastfmlinkedinlivemailruplurkreddittumblrtwittervkontaktewordpress
Bugs and Issues
If you encounter any bugs or issues, feel free to open an issue at github.