HybridAuth enable developers to easily build social applications to engage websites vistors and customers on a social level by implementing social signin, social sharing, users profiles, friends list, activities stream, status updates and more.
HybridAuth goal is to act as an abstract api between your application and various social apis and identities providers such as Facebook, Twitter, MySpace and Google.
HybridAuth is an easy to install and use social sign on php library. Connect users to a wide variety of well known social networks, grab their profiles, contact lists, update their status and even more.
A comprehensive online user guide that gives the definitive description of HybridAuth features with samples and tutorials.
Download the latest version HybridAuth 2.1.2 at SourceForge.net or fork it on Github.com.
HybridAuth can be easly integrated on you existing website. All you have to do is to include hybridauth main file and a couple of lines to your login page like it's shown in the this sample.
This snippet show how to connect a user with Twitter, grab his profile, update his twitter status then grab his freinds list:
<?php
$config = dirname(__FILE__) . '/library/config.php';
require_once( "library/Hybrid/Auth.php" );
try{
$hybridauth = new Hybrid_Auth( $config );
$twitter = $hybridauth->authenticate( "Twitter" );
$user_profile = $twitter->getUserProfile();
echo "Hi there! " . $user_profile->displayName;
$twitter->setUserStatus( "Hello world!" );
$user_contacts = $twitter->getUserContacts();
}
catch( Exception $e ){
echo "Ooophs, we got an error: " . $e->getMessage();
}
Third party extensions available for serval CMS and PHP frameworks.
This is a list of the awesome people who have contributed to Hybridauth Library on Github.
Many other people have also contributed by submitting patches, constructive discussions and support.
Thanks to each and everyone of you!
Follow us on Twitter to keep track of updates and announcements.
Follow @HybridAuth