Social login
Let members sign up and sign in with their Google or Facebook account, or with your own OAuth2 provider.
Social login adds Sign in with Google and Continue with Facebook buttons to your login and sign-up pages. Members join with two clicks and no new password to remember, which means more sign-ups and fewer “forgot password” emails. You can also connect any service that supports OAuth2, such as your organisation’s own sign-in system.
You’ll need a free developer account with each provider you want to use. Setting one up takes about 15 minutes.
Your site must use HTTPS for Google and Facebook to accept it. Every yoursite.yclas.com address does; for your own
domain see Connect your own domain.
Before you start: your redirect addresses
Each provider asks for the address it should send members back to after they sign in. Replace
https://www.example.com with your site’s address, exactly as it appears in the browser:
| Provider | Redirect address |
|---|---|
https://www.example.com/social/login/1?hauth.done=Google |
|
https://www.example.com/social/login/1?hauth_done=Facebook |
|
| OAuth2 | https://www.example.com/social/oauth/1 |
Note the dot in hauth.done for Google and the underscore in hauth_done for Facebook. If you later move to another
domain, add the new addresses at each provider.
Set up Google
- Sign in to the Google Cloud Console and create a project for your marketplace.
- Open APIs & Services › OAuth consent screen and fill in your app name, support email and your site’s address. Choose External users.
- Open APIs & Services › Credentials, click Create credentials › OAuth client ID and choose Web application.
- Under Authorised JavaScript origins, add your site’s address, for example
https://www.example.com. - Under Authorised redirect URIs, add the Google redirect address from the table above.
- Click Create and copy the Client ID and Client secret.
- Publish your consent screen (move it from testing to production). Until you do, only test users you list can sign in.
Google renames these screens from time to time; look for “OAuth client” and “redirect URI” if the names differ.
Set up Facebook
- Go to Meta for Developers and create an app that uses Facebook Login.
- In the Facebook Login settings, add the Facebook redirect address from the table above to Valid OAuth Redirect URIs, and save.
- Make sure the app may ask for the email permission.
- In the app’s basic settings, add your domain, your privacy policy address and a User data deletion address (see below), then copy the App ID and App Secret.
- Switch the app to live (published) mode, so anyone can use it, not only you.
Facebook’s data deletion request
Facebook asks every app that uses Facebook Login for a way people can ask to have their data deleted, and won’t let you publish the app without it. Your site doesn’t have an automatic deletion callback, so give Facebook a page with instructions instead:
- In the admin panel, go to Pages and create a page called, for example, Delete your data.
- Explain how members can have their account and data deleted: for example, by writing to you through your contact page, or to your email address, from the email address of their account. Say how quickly you’ll do it.
- Publish the page and copy its address, such as
https://www.example.com/delete-your-data.html. - In your Facebook app, under App settings › Basic, choose Data deletion instructions URL in User data deletion and paste the address. Save.
When a member asks, delete their account in Users (see Manage users). That removes their account, listings, photos and everything else linked to it from your site. Members can’t delete their own accounts themselves, so the request always comes to you.
Link the same page from your privacy policy, so members who didn’t sign in with Facebook find it too. See Pages.
Switch on social login on your site
- In the admin panel, go to Add-ons and open Social login.
- Click Enable.
- Under Google, tick Enabled and paste the Client ID into Id and the Client secret into Secret.
- Under Facebook, tick Enabled and paste the App ID into Id and the App Secret into Secret.
- Click Save.
- Sign out and open your login page: the new buttons appear above the form. Try each one.
Social login settings
| Setting | What it does |
|---|---|
| Enable / Disable | Switches the Social login add-on on or off. |
| Enabled (per provider) | Shows that provider’s button on the login and sign-up pages. |
| Id, Secret | The keys from the provider’s developer console. |
| OAuth2: Client id, Client secret | The keys from your OAuth2 provider. |
| URL authorize, URL access token, URL resource owner details | The three addresses your OAuth2 provider publishes for the “authorization code” flow. |
A provider’s Enabled box is what puts its button on the page. To remove social login completely, untick Enabled for each provider as well as clicking Disable.
Connect your own OAuth2 provider
If your members already have accounts in another system that supports OAuth2 or OpenID Connect (a company directory, a membership platform, Auth0, Keycloak and the like), you can let them sign in with those.
- In your provider, register a new web application with the OAuth2 redirect address from the table above.
- Copy its client ID, client secret and the authorize, token and user-info addresses.
- Under OAuth2 on the Social login page, tick Enabled, fill in the five fields and click Save.
An OAuth button then appears with the other social buttons. The provider must return the member’s email
address and a unique ID (sub or id) from its user-info address.
How accounts are matched
- The first time someone uses a social button, Yclas creates an account with the name and email address the provider gives. If email verification is on, they confirm it first.
- If an account with that email already exists, it’s linked when the provider confirms the address is verified (Google and Facebook do). Otherwise the member sees “An account with this email already exists. Please log in with your password.”
- If the provider doesn’t share an email address, the member is asked to type one before the account is created.
- After that, the same button always signs them into the same account, even if they change their email at the provider.
Members who joined with a social button have no password of their own. If they want to sign in with email and password too, they can use Forgot password? on the login page to set one.
Troubleshooting
| Problem | What to check |
|---|---|
Google says redirect_uri_mismatch |
The redirect address at Google must match exactly, including https, www and ?hauth.done=Google. |
| Facebook says the URL is blocked | Add the Facebook redirect address (with hauth_done) to Valid OAuth Redirect URIs, and check the app is live. |
| Only you can sign in with Google | Publish the consent screen, or add the person as a test user. |
| The buttons don’t appear | Tick Enabled for the provider and click Save, then clear the cache if needed. |
Related guides
- Sign-up and login settings — who may sign up and how.
- Two-step login — extra protection for password logins.
- Add-ons — the other optional features on the Add-ons page.
Updated 7 October 2026 · Suggest an edit