Since our version 2.1, it’s really easy to login using a social network account like Twitter, Facebook, Google Sign-In , LinkedIn etc. For this, 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
- Open in a new window the Google Developers Console
- Press Project on the top and choose Create project.
- Choose a Project name, then select “Yes” or “No” for the other options and press Create.
- Then choose Credentials, on the left menu.
- Choose Create Credentials -> OAuth client ID and then click on Configure consent screen.
- Now you need to enter a Product name and you can fill any of the other optional fields you want. Click Save.
- After that you will be redirected to create client ID.
- Application type: Web application
- Authorized Javascript origins: Your site URL here. ex: https://yclas.com/
- Authorized redirect URI: ex: https://yclas.com/social/login/1?hauth.done=Google
10. Click Create.
11. Now you have to verify (register) your domain name. Go to Google Console Developers -> Credentials, choose the last tab, Domain verification and follow the steps there.
12. Go to http://yourdomain.com/oc-panel/social/index
13. Set Google = TRUE
14. Fill ID = Client ID as appears at Google page
15. Fill Secret = Client secret as in Google
16. Click Update in the bottom of the page
17. Logout
18. Go to login, Google should appear there
19. Now test it!
How to enable Facebook login
Since March 2018 it’s required to get an SSL certificate for your domain in order to use Facebook Login. If your website is hosted on yclas.com follow this guide to get an SSL certificate. If you are using Yclas Self-Hosted read more about it here.
This social login might change depending on Facebook !
1. Go to Facebook for developers.
2. Click Add a New App.
3. Fill the fields Display Name and Contact Email.
4. Press Create App ID.
5. Choose Set Up Facebook Login on Add Product page.
6. Choose Other on the Quickstart page.
7. Choose Facebook Login -> Settings on the left menu.
8. Enable Client OAuth Login and Web OAuth Login and fill the fields:
Valid OAuth redirect URIs:
http://yourdomain.com/social/login/1?hauth_done=Facebook
or
https://yourdomain.com/social/login/1?hauth_done=Facebook
Deauthorize Callback URL: https://yourdomain.com
7. Click Save Changes.
8. Choose Settings -> Advanced and enable Social Discovery and Allow API Access to App Settings.
9. On the header switch OFF to ON.
10. Choose a category and click Confirm.
11. Choose Settings -> Basic and copy your App ID and App Secret.
10. Go to http://yourdomain.com/oc-panel/social/index
11. Set Facebook = TRUE
12. Fill ID = App ID as appears at FB page
13. Fill Secret = App secret as in FB
14. Click Update in the bottom of the page
15. Logout
16. Go to login, Facebook should appear there
17. Now test it!
How to enable AOL login
- Go to http://yourdomain.com/oc-panel/social/index
- Set AOL = TRUE
- Click Update in the bottom of the page
- Logout
- Go to login, AOL should appear there
- Now test it!
How to enable Open ID (yahoo) login
With this option users will be able to login using an Open ID account. In Yclas we use Yahoo as Open ID provider since it’s really easy to implement.
- Go to http://yourdomain.com/oc-panel/social/index
- Set Open ID = TRUE
- Click Update in the bottom of the page
- Logout
- Go to login, Open ID should appear there
- Now test it!
How to enable Yahoo login
- Go to https://developer.yahoo.com/apps/create/ and create a new application.
- Fill out any required fields such as the Application Name and the Description one.
- In the Redirect URI(s) field enter: http://yourdomain.com/social/login/1
- Set Application Type to Web Application.
- Choose API Permissions -> OpenID Connect Permissions
6. Go to your panel, Settings -> Plugins, enable Social Auth, click Save and then go to Settings -> Social Auth or http://yourdomain.com/oc-panel/social/index
7. Set Yahoo = TRUE
8. Fill ID = Client ID as appears at Yahoo
9. Fill Secret = Client secret as in Yahoo
10. Click Update in the bottom of the page
11. Logout
12. Go to login, Yahoo should appear there
13. Now test it!
- Go to https://apps.twitter.com/ and press Create new app
- Fill the fields Name, Description and Website.
- In the Callback URL field enter: http://yourdomain.com/social/login/1?hauth_done=Twitter
- Press Create your Twitter application
- Go to the “Keys and Access Tokens” tab
- Copy the Consumer Key and Consumer Secret and paste in your website admin panel. Settings -> Social Auth -> Twitter Key and Secret.
- Back in your Twitter app, go to the Permissions tab and make sure the Access is set to “Read and Write”.
- Done!
Other social login
From documentation Hybrid Auth, follow similar procedure.
- Twitter
- Yahoo (deep integration, but check better Open ID)
- MySpace
- Windows Live
- LinkedIn
- Foursquare