I’m using Facebook’s OAuth API to create a custom social login for my Wix Site. After receiving the information from Facebook I’m using Wix Users Backend generateSessionToken() to either register the user or login the user.
Now the generateSessionToken() function does not allow you to pass the first name and last name of the registered user, only the email but I need the name to populate correctly in the CRM so I’m using updateUserFields() to update the registered user’s information immediately after the session token is generated.
The problem is the updated first and last name is not getting populated in the ’ Contact List ’ of the CRM. See 2 images below.
But the name is correctly populating on the ’ Site Member ’ list. In the API Documentation it is said " Only the properties passed in theContactInfoobject will be updated. " and all the properties of the object are that of the CRM’s contact info object
One of the reasons why only the email may be showing up in the contacts list is because someone with that email address filled out a form on your site or a contact action related to that email was performed on the site before the name and email was registered as a site member.
In order for us to really see why this may be happening and run some tests, send us your site name and URL so we can take a look at what may be causing this.
Thanks Edward, not possible at all that someone signed up with this email because the site is mine, the email is mine and this is the first time I have tested the Facebook integration which pulled this particular email which I have never used before.