Search Google

Wednesday 2 July 2014

login authentication script and other script


Login with Google using PHP API library


Since version 2.1 it’s really easy to login using your social network account like Twiiter, Facebook, Google + , linkedin etc.. we use a 3rd party open source project called HybridAuth (awesome project).
To activate any of these social logins you need first to purchase a premium theme from our market.

How to enable Google login

  1. Open in a new window the Google Developers Console.
  2. Click Create project.google1
  3. Choose name and create.
  4. Then goto, Api->Credentials->Create New Client IDgoogle2
  5. Choose Web Application.
    • Authorized Javascript origins: Your site URL here. ex:
    • Authorized redirect URI: ex:
  6. Click Create Client ID google3
  7. Go to
  8. Set Google = TRUE
  9. Fill Id = Client ID as appears at google page.
  10. Fill Secret = Client secret as in google.
  11. Click Update in the bottom of the page.
  12. Logout
  13. Go to login, Google should appear there.
  14. Test!

How to enable Facebook login (might change depending on facebook)

  1. Create a facebook app Here is a guide with instructions on how to do that
  2. Go to facebook developers section
  3. Go to settings > Advanced
  4. Activate “Client OAuth Login
  5. Add your domain to “Valid OAuth redirect URIs“. Site Url should be a valid Url ex:
  6. Click Save Changes
  7. Go to Status & Review
  8. Answer ”Do you want to make this app and all its live features available to the general public?” with YES.
  9. Go to
  10. Set Facebook = TRUE
  11. Fill Id = App ID as appears at FB page.
  12. Fill Secret = App secret as in FB.
  13. Click Update in the bottom of the page.
  14. Logout
  15. Go to login, Facebook should appear there.
  16. Test! 




No comments:

Post a Comment