How to redirect on a specific page after Facebook connect / Sign up

Hi everyone !

I am currently using the custom form for sign up to my website with only mail and password, however after completing the sign up form I would like to redirect the user to his profile page so he can complete other elements that are linked to a customized member database.

I am trying to add this command :

wixLocation.to("/members-first-connection/{ID}");

I don’t know exactly where to put it when we sign up through Facebook connect…

Thanks !

So you are using the Custom window as mentioned here.
https://support.wix.com/en/article/about-the-member-signup-form

Why not simply make up your own member profile page as like shown here.
https://support.wix.com/en/article/corvid-tutorial-building-your-own-members-area

Then you can simply direct the user to their own profile page as shown at the bottom of the tutorial.

export function profileButton_click(event) {
  wixLocation.to(`/Members/${wixUsers.currentUser.id}`); 
}

Also, have a read of this old post here too, which was in your Related Posts box on this post page.
https://www.wix.com/corvid/forum/community-discussion/redirect-members-after-custom-sign-up

Hi ! Thank you for your answer :slight_smile:

That’s what I did actually. I want to separate the fact that someone Sign in (which means he creates his profile) and the fact that he log in (his profile is already set up). After Signing in, I want to direct him to a specific page where he can create his profile, but after Logging in I judt direct him to his profile with the command wixLocation.to() .
Directing him to a specific page for creating his profile allows me to have more options on the field type that I want to manage (for example, if I only use the command wixUser.register(mail, password, contactInfo) , it doesn’t seems to allow me to store picture in contactInfo object). Thank you !