Talk:User ID
From Facebook Developer Wiki
22222
Contents |
[edit] doesn't work anywhere
Neither keyword doesn't undergo string interpolation when used inside a <fb:swf> tag (at least, not as part of the 'flashvars' value).
[edit] BIGINT
User ID is a BIGINT just in case me and everyone else on Earth suddenly decide to each create 3 billion new profiles.
[edit] Java FacebookRestXmlClient
If that's so, why does the Java client use the "int" data type for user ids? Shouldn't it be using long?
[edit] Javascript (and possibly other float-only languages)
Javascript has only one number type - 64bit double. In this, signed ints up to 53 bits (that is, positive ints up to 52 bits) are stored ok, but then it changes to floating point and cannot store each value.
For Javascript (which is gaining share on server side), as well as for other cases where UIDs are in 64bit doubles, could it be possible to guarantee that uids are not going to be more than 52 bits, and if time comes that it will cross this boundary, give a notice same as was this one of 32->64 (or, in other words, not exactly "that it is not going to be more than 52 bits", but "that it is picked so it can be unambiguously stored in IEEE 64bit double", it can be more than 52 bits, but not every value is storable in higher bit regions, the concern is, if you can guarantee it is unamgibuously storable not only in 64bit int, but also in 64bit double)?
This is also an issue for us. I already see user IDs in the 63 bits range. How is it going to work with Javascript version of Facebook Connect? --1491716542 16:03, 23 November 2009 (PST)
[edit] is User ID increases for each new registration
I want to know when a user with a specific User ID registered to facebook. How can I get that data using facebook api. If you don't know this, then do you know if User IDs are increasing number for new registrations?
[edit] Determine current user's ID
How would I enter the current user's ID as a PHP variable (for instance, for storing in a MySQL database)?
- Check out Authorizing Applications, but basically, you can do this:
- $user = $facebook->require_login();
- Pete -- 563683308 09:49, 16 October 2009 (PDT)
[edit] My User ID
Is there a way to determine MY User ID? - Check your profile URL. It should be in the URL.
Is there a way to find it now that many users have chosen a username to go in their url instead?
If you want to know the UID of a person with a username, go their page and hover your mouse over the link saying "Send [name] a message." The UID will be in the hyperlink.
