Custom Registration + Google

Hi,
Is it possible to create a custom registration page with an option to register using Google/Facebook accounts (like the options provided with the regular Wix registration process)?

Thanks,

2 Likes

Hi, I would really like to know if this is possible.

@yoav-wix @amit-wix Do either of you know if this is possible??

@ kamoi gilkes

Yes it’s possible…

This can be achieved using wix code. You need to create a custom login/register page in order to have your website name displayed when a user authenticates using google or facebook. To summarize what you would need to do:

  1. Place a HMTL iFrame on your page an enter the relevant HTML code into it to allow user authentication.

  2. Register your website on Google or Facebook to receive a client ID and Secret.
    (once registered you can set the website address the user will see in the message during authentication)

  3. Add your client ID to the HTML iFrame code.

4 Add Javascript code to your page to receive the Google/Facebook user info from the HMTL iFrame.

5 Add Javascript code to your page to register the user on your website.

there is a useful link here to get you started https://www.wix.com/code/home/forum/community-discussion/solution-google-facebook-user-information-on-login

@mikemoynihan99 Thank you for this - will test out soon!

Thanks Mike!

Hi, I still have problem with step 5, how can I get password for register to my wix? Thankyou very much

This is an old post from 2018 and therefore it is being closed.

If you need help please add a new post to the forum and refer back to this old post with a link to it.

You can simply register the user using Wix Users API and the Register function, which you can either do through Wix Users API or the Wix Users Backend API.
https://www.wix.com/corvid/reference/wix-users.html#register
https://www.wix.com/corvid/reference/wix-users-backend.html#register