Tuesday, 15 May 2012

database - Sing up via social networks in android app -



database - Sing up via social networks in android app -

some apps have such possibility sing up via google+ or facebook etc.

but possibility mean? should developer do? should developer send token remote db? migh insecure. , token might expired after time.

how can determine particular user in future? best practices such case?

basically, user signing utilize application logging in social network, , authorizing application access basic info name, email address, picture, etc. it. typically low friction process users anyway, because if take sign using social network, chances logged in it, , have filled info there.

the process consists of 3 steps:

your application redirects user login social network. done through sdk/api social network offers. here's how login facebook your application requests user id social network, checks if has application record same social network user id. if has one, existing user logging in app. if doesn't have, it's new user registering application. here's how fetch user info facebook. in case of new user, application creates new user record, associates social network user id, , optionally requests additional user info social network needs store in new record. how facebook, @ link step 2.

note process pretty much same when new user registers application using social network, or existing user logging in application using social network. main difference existing users stop @ step 2, new users go through step three.

there's scenario fetch step 3 info social network existing users if want refresh record, profile pictures people alter often. maintain in mind though, in general keeping re-create of user info frowned upon both social networks, , users, want maintain locally minimum info need , fetch else need social network.

android database facebook authentication google-plus

No comments:

Post a Comment