Backendless.UserService.loginWithFacebookSdk results in “Unable to register user. User already exists”.
Why am I receiving this error when I am trying to login a user with Facebook.
Victor
Have you logged in as that user from another device? Perhaps a different OS?
No I logged in from one device only.
Hi, Viktor!
This error can be thrown when column marked as “Identity” (it is email be default) already contains the same value as the user that’s trying to login/register. For example if you have logged in with email and password and then try to login with the Facebook account that has the same email in Facebook profile, you can get this error.
Anyway, other users are also experiencing the same error and we are trying to track this bug.
Would be helpful if you could provide additional information about this error to this thread
Thanks
Viktor, if you could send us screenshots of your Facebook App settings (Basic and Advanced tabs) that would be much appreciated - support@backendless.com
And where shall I access these settings?
As said in LoginWithFacebookSDK documentation, you should first configure your environment with Facebook SDK as shown here.
If you did not do that - maybe that’s the reason you receive “Unable to register user. User already exists” error.
Since we try to fix the error you are reporting, can I ask you for two things?
- Can you please send us the project code you are using so we can investigate how it can result with this error.
- Can you reproduce this error with our Android LoginWithFacebookSdk sample? You’ll need to setup your Facebook application as shown in this guide . And don’t forget to specify your Facebook app_id in the sample code(strings.xml)
Thank you!
Yes I did that and I have entered the necessary facebook keys in the backend. Logging in backendless with a facebook account was being successful until this error started to show up at some of the times. After trying to identify the problem, the error has since disappeared and returned to normal.
At the moment I do not have access to the code but what I was doing is first logging the user with facebook and then use Backendless.UserService.loginWithFacebookSDK to login using facebook authentication.
loginWithFacebookSDK was then returning this error and could not login.
Same problem here in iOS. My case is: I had logged in with Facebook and then logged out. When I tried to login in with Facebook account, it threw the same error. It is a new error, because it never happened before. (2 weeks ago)
Did you login both times with the easy login or the FB SDK login? Could you share more specific details?
Mark
No, I did not use easy login, both times I used FBSDK login. It throws error 3033.
http://support.backendless.com/public/attachments/d02fffdfd70292f4dccb8f4170fd3cad.png</img>
http://support.backendless.com/public/attachments/2d01cd4046400832fbb132a36cb29cdb.png</img>
Our developers were able to reproduce the problem. We should have a fix shortly