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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:04:32+00:00 2026-06-10T21:04:32+00:00

I am using a facebook app to allow users to login to my website.

  • 0

I am using a facebook app to allow users to login to my website.

This works fine and it prompts the user to allow the app after they have entered there username and password.

As part of the sign in i submit some of the users info to a database to create a profile for them on my site. This works fine for 2 out of 4 of my test users and the correct info is saved to the database (name, email , id, ect..).

However my other two test users get the same ID number returned, which is different to the the ID numbers displayed in the Facebook API tool for there usernames.

So ignoring the two that work i will discuss my problem with the two that don’t work below:

If i delete all entries from my database and login with account3 it is added to the database with the correct username, email address, name ect.. however its ID differs from that displayed in the facebook API tool. If i login with Account4 i get an error stating that there is a duplicate ID for id number This is how i have designed the code for the time being so i can debug this issue. If i delete the entry for account3 and sign in with account4 then it saves to the database with the correct name, email address, username ect but the ID number is still wrong.

Why would this work for 2 out of 4 accounts? And why would i be getting a duplicate ID error when all user ID’s should be unique?

Any help would be great.

Thanks in advance.

  • 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-10T21:04:33+00:00Added an answer on June 10, 2026 at 9:04 pm

    having looked over this for sometime i have finally found the solution.

    The ID is too long for the int field in mysql so it places the largest possible ID number.

    I have changed the ID field to varchar(500) and my problem is resolved.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the Facebook SDK to allow users to share content through my app
I have a facebook app that I authenticate using a general-purpose authentification. Like this:
I'm using facebook connect to allow the visitors login to a website using their
Users have been able to log into my website using their Facebook account, but
I have just implemented Facebook Authentication on my website using Facebook JavaScript. If user
I'm using facebook connect to let users login my application easy. It works well,
I'm using the Facebook C# SDK 6.0.20 to allow users using my app to
I am trying to provide login using facebook option to my website users. So,
I have built a Facebook app using the Javascript SDK that has been up
I have a facebook app using a lot of Javascript that doesn't work correctly

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.