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

  • Home
  • SEARCH
  • 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 6974371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:13:43+00:00 2026-05-27T17:13:43+00:00

I am building a facebook application and the application accesses the user’s friends through

  • 0

I am building a facebook application and the application accesses the user’s friends through the open graph and I need them contained in a database.

Now here this database contains the user id, name and some other info needed by my app. In order to prevent multiple entries in the database, I assigned the user id as unique using phpMyAdmin. now this works fine for many values but at the same time it fails big time.

Lets say the values that are unique according to mysql are:

51547XXXX
52160XXXX
52222XXXX
52297XXXX
52448XXXX

But if the ids become

5154716XX
5154716XX
or
5216069673X
521606903XX

Then it counts it as similar and thus discards one of them.

The result, lets say I am entering my friend list into the table, then it should have 830 records and if I do not use the unique constraint thats the value I get.

But as soon as unique is activated, I just get 375 which means 455 records are discarded, considering them same as the previous data..

The solution what I can think of is, comparing data with php first and then logging them into the database, but then with that much queries, it will take long long time. Google cannot answer this, dunno why.. 🙁

  • 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-05-27T17:13:43+00:00Added an answer on May 27, 2026 at 5:13 pm

    Facebook user ids are too big to fit into MySQL’s INT type (which is 32bit). You need to use the BIGINT type which is 64 bit and can thus handle the range of ids facebook uses.

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

Sidebar

Related Questions

I am building an application that accesses the Facebook account and gets the events
I'm building a facebook iFrame application that uses facebook comments. When a user leaves
I'm building my first Facebook Connect application, and am running into an odd problem.
I am building a web application that has a real-time feed (similar to Facebook's
I am building a Facebook application which should not be viewable to anyone under
I need to perform facebook post into the user wall from wp7 (but without
I'm building Rails application and I want to have user registration/login functionality. I also
I am building a web application and I need to create a feedback form
I'm building a facebook connect app to publish content to user's streams. In order
I am building a small facebook application, in which I am performing the following:

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.