I am creating an app that a person can signup with facebook, twitter or email. When looking for friends it can link his facebook, twitter accounts.
The problem is that if a person is already linked with facebook or twitter, I cannot link it with the other account, so every time the person needs to look for friends it need to login again.
Is there a way I can have both authdata to the same user so when the user links both twitter and facebook, it will show the friends without need of login again?
Thanks!
Great question. This was a hard one for me to find the answer to as well. Unfortunately, the Parse User table that has default User fields that are unique and requires there to be only one User per account. I doesn't matter how they are logging in (via Facebook, Twitter, Email, ect), there can be only one username
password
of email
field ect. You can watch them talk about it and why it's that way here in their Ask Parse Anything.
I know it's not ideal for developers who what to give the user an option on the platform they want to sign in on. If you add both the user would have to remember if their account was set-up through Facebook or Twitter in your case.
However, if you wanted to keep/link the Facebook and Twitter aspects to your project you may be able to pull the users email (assuming they use the same one for both their Facebook and Twitter accounts) from Facebook and Twitter and do the authentication through their email address.
Hope that helps. Cheers!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With