Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I link a person with both twitter and facebook on parse?

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!

like image 476
ElvisBoss Avatar asked Aug 02 '15 22:08

ElvisBoss


1 Answers

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 passwordof 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!

like image 190
garrettmac Avatar answered Oct 20 '22 18:10

garrettmac