“Hybridauth enables developers to easily build social applications and tools to engage websites visitors and customers on a social level by implementing social sign-in, social sharing, users profiles, friends list, activities stream, status updates and more.
The main goal of Hybridauth is to act as an abstract API between your application and various social apis and identities providers such as Facebook, Twitter and Google.”
Hybridauth 2.x was the best option for nicely aggregated social logins so far, but some of the social “Providers” are outdated or no longer working. Version 3.0 is still in development, but providing a complete rewrite.
require 'vendor/autoload.php'; $config = [ 'callback' => 'http://localhost/hybridauth/examples/twitter.php', 'keys' => [ 'key' => 'your-consumer-key', 'secret' => 'your-consumer-secret' ] ]; $twitter = new Hybridauth\Provider\Twitter( $config ); try { $twitter->authenticate(); $userProfile = $twitter->getUserProfile(); $accessToken = $twitter->getAccessToken(); $apiResponse = $twitter->apiRequest( 'statuses/home_timeline.json' ); } catch( Exception $e ){ echo "Ooophs, we ran into an issue! " . $e->getMessage(); }
Hybridauth 3.0 Remake @ Github
For Facebook , Twitter and Google+ I still use my own little wrappers, but if you want more this is the way to go in the future :)
BOOKING SOLUTIONS 202x This is my take on a subset of booking, appointment, PMS or… Read More
THE GOAL Create a system cron for WordPress, that is accessible and can be easily… Read More
2024, what's cooking? Slowly getting into the 2024 spirit. 3 projects coming to a close… Read More
Short look back at 2023 This has been a busy and interesting year. I am… Read More
Elementor Pro provides grid containers as an experimental feature. The options provided are limited, when… Read More
Archaeology Travel is an online travel guide for people who enjoy exploring the world’s pasts.… Read More