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 8290873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:56:31+00:00 2026-06-08T12:56:31+00:00

Users details are held in database table called user where I have fields username

  • 0

Users details are held in database table called user where I have fields username and password among others. Now, I need to give users additional option to login using facebook and twitter.
I know how to handle these authentications but what I can’t think is –

How to identify which FB user account relates to which local user account? How do I do this?

I’m not looking for code but the process. The process in my mind is somewhat as below –
User logs in using username and password of my website. then they can add FB or Twitter as external authentication and when they do it I ask them to login to FB. On successful FB login I save some unique fb id (i don’t know which as haven’t checked yet) in the users table. Next time they can just login using FB as I’d be able to identify which local record they belong to. Is this how you would do this?

What would you suggest? Thanks for your inputs in advance.

PS – I’ll be adding multiple networks (like linkedin and others) but at the moment fb and twitter only.

  • 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-08T12:56:32+00:00Added an answer on June 8, 2026 at 12:56 pm

    One way you can do this is :
    @Registration

    1. Allow the user to register with Facebook, Twitter
    2. Once the process has completed, redirect the user to create a username on your site
    3. Using the email obtained from Facebook, Twitter, and username from local form, insert all this information into a db table.
    4. This will allow referencing between FB, TW, and local usernames
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a SQL Server 2008 table called users which stores users details. I
I have a profile weblog that contains all our users details (fields seperate from
I have a database containing user details. I don't have separate columns for 'firstname'
I'm trying to insert logged out users details in a tracking table(username, ipaddress, logout
I have a database of users where I have a primary table with name,
I'm writing an application where users enter some details into an SQLite Database. I
I need to give users the opportunity to submit their details only once and
Language: PHP I have a form which asks users for their educational details, course
Lets suppose that I have some pages some.web/articles/details/5 some.web/users/info/bob some.web/foo/bar/7 that can call a
I store various user details in my MySQL database. Originally it was set up

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.