This is a very simple FuelPHP package that contains wrappers for Facebook, Twitter and Google.
Clone this repo in fuel/packages
with:
git clone --recursive git://github.com/gkwelding/FuelPHP-Social-Package.git social
And add social
to always_load array in app/config/config.php
.
You should set the config files of the classes in fuel/packages/social/config/
.
That's it!
You can access the classes like the examples below:
Facebook: \Social\Facebook::instance()->getUser();
Twitter: \Social\Twitter::instance()->logged_in();
Google: \Social\Google::instance()->getClientApi()->getService('Calendar');
Work here is relesed under Phil Sturgeons DBAD license. http://philsturgeon.co.uk/code/dbad-license. Just give me some goddam credit if you use it and don't be a dick.