Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Web Design & Development > PHP/MySQL/Scripting

  • Print
  • + Share This
Like this article? We recommend Installing the HybridAuth Library

Installing the HybridAuth Library

Once you’ve registered your application with the service providers you want your site to work with, you can install the HybridAuth library. It’s a short and simple process:

  1. Download the HybridAuth library from
  2. Expand the downloaded file to access its contents.
  3. Copy the hybridauth directory from the resulting folder to your website.
  4. Make the hybridauth/config.php file writable.
  5. You’ll need to temporarily make this file writable by the webserver. To do that, change its permissions to 777 (in UNIX terms). If you’re unsure what this means, look online or talk to your web host for details.

  6. Go to Replace “” with your actual domain name, of course.
  7. Configure all the providers you want to support. This is mostly a matter of choosing Enabled/Disabled and then entering two pieces of information for each (see Figure 2). The first is a public identifier (application ID or public key); the other is a secret key. These values will be provided by each provider when you register your application.
  8. Figure 2 Configuring HybridAuth to support Twitter.

  9. Click “Setup HybridAuth” (at the bottom of the page).
  10. Delete the hybridauth/install.php file.
  11. Change the permissions on config.php back to something more appropriate, such as 755.

And that’s it! You should be able to use the HybridAuth library now.

  • + Share This
  • 🔖 Save To Your Account