Solved

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

Posted on 2011-02-23
1
277 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video teaches users how to migrate an existing Wordpress website to a new domain.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

759 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

22 Experts available now in Live!

Get 1:1 Help Now