Facebook login <--> Email login

I am confused how this two login methods work together.

First to say, I have managed both of them to work (have a problem with facebook more on this later).

What I intended in my game is give the user 3 login options:

a) last user/session login -> would login the last user without asking any credentials

b ) email login - login with email/pwd

c) facebook login

I have created a Corona cloud user with email some_email and username some_username.

The email login works fine.

Now I have logged in with my facebook account which has the same email some_email and the username I get from cloud.getProfile is firstname.lastname.9

From now on, I always get the username firstname.lastname.9 even if I login with email !?

Is this how it is supposed to be ?

One more info, the Corona cloud user id I get from cloud.getProfile is the same for both logins.

Can a user login with facebook if he hasn’t created a Corona Cloud user ?

I could not test this because when I tried to login with my daughters facebook I get the error:

The operation couldn’t be completed. (com.facebook.sdk error 2.) Why is that !?

Thank you very much for your answers, I am trying to complete the login puzzle.

Regards,

Damir.

hey mate, could you solve it? I simply want to register a player by facebook.

The facebook login works. The above error I get for only 1 facebook account.

For the other behaviour I asked above, would be nice if someone from Corona answers.

hey mate, could you solve it? I simply want to register a player by facebook.

The facebook login works. The above error I get for only 1 facebook account.

For the other behaviour I asked above, would be nice if someone from Corona answers.