Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8428671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:07:13+00:00 2026-06-10T05:07:13+00:00

I would like best practices and advice about creating a new ‘user’ table in

  • 0

I would like best practices and advice about creating a new ‘user’ table in MySql that will NOT store the reg user/pass in it, but will store the facebook ID that will be given to me by Facebook.

Normally, I’d worry about random Hashing everything in there, but… do I still need to do that? if there’s NO personal information tied in to their facebook ID, i don’t see a reason to change anything…

so, Stack Overflow MySql Geniuses, tell me the best way to do this…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T05:07:14+00:00Added an answer on June 10, 2026 at 5:07 am

    your table would be like this:

    I use this for my authentication for “login with facebook” (and other providers) app

    CREATE TABLE authentications (
      `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
      `provider` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
      `uid` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
      `access_token` text COLLATE utf8_unicode_ci DEFAULT NULL,
      `secret` text COLLATE utf8_unicode_ci DEFAULT NULL,
      `created_at` int(11) DEFAULT NULL,
      `updated_at` int(11) DEFAULT NULL,
      `user_id` int(11) DEFAULT NULL,
      `expires` int(12) DEFAULT '0',
      `refresh_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
      PRIMARY KEY (`id`),
      UNIQUE KEY `unique` (`user_id`,`provider`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
    

    sample data:

    INSERT INTO `default_authentications` (`id`, `provider`, `uid`, `access_token`, `secret`, `created_at`, `updated_at`, `user_id`, `expires`, `refresh_token`) VALUES
    (10, 'twitter', '754569028', '897234097-FxwID1nybWTIMmZs1hngsaWwedsfsfx7uiwxMwfU4s', '7uc1vzBAL9rA8h38asdfasfasOzeJkyt1jU1Zj4c', 1344632332, NULL, 1, NULL, NULL);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to ask about best practices or the simplest way possible of
I would like to get feedback on best practices in regards to querying/storing a
I would like advice as to best practice in testing object existence for cross-browser
I would appreciate some advice on best practices with my first WPF app (a
This might be a bit cheeky but I would like some advice. I'm new
I would like some advice. I'm going to be using an sqlite database that
What would be best practice to localize your ASP.NET MVC application? I would like
Which is the best practice in this situation? I would like an un-initialized array
I would like to see best way of posting to Facebook from a HTML
What I would like ask is best illustrated by an example, so bear with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.