Solved

How do we replace signup in our app with facebook connect signup?

Posted on 2011-02-23
1
279 Views
Last Modified: 2012-06-21
Hi,

I have a game application for mobile. When a user signs up, I put them into a database table like this:

    id | email | username | password_hashed | etc

I know we can use facebook connect to let users "signup" for our apps, letting them skip the tedium of filling out our standard signup forms (mine has email, password fields, etc etc). If the users "signs up" with facebook connect, how do we merge that in with users that sign up with the "standard" method?

I'm guessing I'd add another field to my users table, which just stores facebook_id. If they signup with connect, I don't have any need for their email or a password, so those fields will be empty:

    id   | email                 | username | password_hashed | optional_fb_id
    -----------------------------------------------------------------------------------    
     1     john@doe.com    john                 xyz                          null
     2     null                       mary               null                           789

So user "john" signed up the "normal" way, he had to give me his email and a password to identify him. Mary signed up with facebook connect, all I store is her facebook id. In both cases, they need to give me a username (just an app requirement). The signup flow was quicker for Mary, she just had to pick a username.

Is that the basic idea?

Thanks
0
Comment
Question by:DJ_AM_Juicebox
1 Comment
 
LVL 12

Accepted Solution

by:
Amick earned 500 total points
ID: 34977434
Yes, that's the basic idea.  You might find this site helpful: http://www.goldsteintech.com/facebook_connect/overview.php.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Change navigation font color on mobile sizes 8 44
Footer Widget in italics on one page only 2 41
Email address on web page 4 41
SQL Injected data? 8 110
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now