Hello,
I’m trying to setup social login via REST api call for Facebook and Twitter.
I’m following through the following documentations:
http://backendless.com/documentation/manage/mgmt_social_settings.htm
https://docs.google.com/document/d/16xc1iBBmEwzROeql4jQyvdmfeHU5Ek4UCfjPzBPiL3M/edit?usp=sharing
I want to map the following properties of backendless User table to respective social account props.
- name
email (identity)
birthDate
country
gender
{
“fieldsMapping” : {
“name”:“name”,
“email”: “email”
},
“redirect”: true,
“permissions”:“email”
}
It’s returning 500 error. See imgfb
http://support.backendless.com/public/0canJSgsupBS0lCVfaX5.jpg</img>
When I call Twitter api, it goes a bit further. Managed to return the Authorization Url in the Location Header. See imgtwitter1, imgtwitter2
http://support.backendless.com/public/OtnPxuVcE9XEDNDPTCsS.jpg</img>
http://support.backendless.com/public/LoFABhiyavUEMFx71rbD.jpg</img>
After I login and authorized app successfully, it redirect back to this backendless error:
{
- message: “Validation for the email property failed. Property value does not match the required pattern.”,
code: 8023
Appreciate if someone could point me out how to achieve social login using backendless REST api calls as soonest.
Thanks.
May