Android - how to store facebook login & normal user login data in database?
<p>What is the best way to store facebook login + normal login?</p>

<p>Currently I have a <code>loginActivity</code>, where there is a <code>facebook login</code> button, a <code>normal login Email/Password Edittext fields</code> for normal login + '<code>register</code>' button for normal user registration</p>

<p>When someone clicked the facebook login button, </p>

<p>it will login with facebook api,
and then store the fb provided <code>username/fb_id/email</code> etc + <code>password</code> (<code>is actually the facebook email</code>) hashed with PHP <code>password_hash($password, PASSWORD_DEFAULT)</code> as '<code>registration</code>' and then '<code>login</code>' with the <code>email</code></p>

<p>there is no registration for facebook accounts, the registration is automatic using the facebook email + auto generated password</p>

<p>while someone register with <code>register button</code> as normal user, it does almost the same thing, but storing user provided <code>username/password/email</code> to DB and then login with the <code>email</code></p>

<p>is this the correct way to store users with FB login and Normal login?</p>