Facebook UID of 10-digits instead of 9-digits UID
In my application I need to know the user's Facebook uid. I get by using the following query using the Facebook API for IOS.
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"SELECT uid, name, email, pic, sex, timezone, religion, birthday_date, hometown_location, interests, about_me, locale, sports, relationship_status, languages, work, games, affiliations, current_location FROM user WHERE uid=me()", @"query", nil];
fb_udid = [[result objectForKey:@"uid"] retain]; fbid = [fb_udid intValue]; // This int value is always 9-digit
With all users always get nine-digit identifiers. (Always nine-digit!) (www.facebook.com/123456789)
My problem is this: there is a user that returns a uid of ten digits, and that has nothing to do with the right uid.
The real user id is 9-digits and instead says it is 10-digits.
Does anyone know why I do not resolve the identifier correctly? Could it be that the user has removed the permissions to the application? Does anyone know if all identifiers are nine digits facebook?
Thank you very much for your help
Does anyone know if all identifiers are nine digits facebook?
No, of course they are not.
And you shouldn’t treat them as numbers in your app, because there is possible danger of f.e. integer overflows corrupting them.