[R97] Wrong Facebook ID

Bugs will be moved here once resolved.

Post » Wed Jul 04, 2012 7:33 am

This is a weird one.

When I use the facebook object (Facebook.UserID)

I get a rather small number that isn't my facebook ID: 944817476

When my ID is really this large number: 100000668370244

I'm not sure where the smaller ID comes from, but it's not mine.

You can confirm it here:

Wrong ID
http://graph.facebook.com/944817476/picture?type=square

Right ID
http://graph.facebook.com/100000668370244/picture?type=square

Let me know your thoughts,
Epic Space Online - Google it!
B
34
S
10
G
5
Posts: 165
Reputation: 6,637

Post » Wed Jul 04, 2012 12:42 pm

Moving to Bugs forum, will check out soon.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,534

Post » Wed Jul 04, 2012 4:05 pm

Yeah, sorry bout that. And wasn't exactly sure it was a bug just yet. Thanks for the prompt response.
Epic Space Online - Google it!
B
34
S
10
G
5
Posts: 165
Reputation: 6,637

Post » Thu Jul 05, 2012 1:52 pm

I checked the Facebook plugin source, and I have no idea how this could happen. We simply store the user ID that the Facebook API gives us. Facebook are notorious for constantly having problems, glitches and outages on their API - a lot of problems simply clear themselves up after a few days. Could you try again some time next week and let me know if it's fixed/the same? (Yep, this is a pain, I had to deal with similar problems when making the plugin...)
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,534

Post » Thu Jul 05, 2012 2:16 pm

Sure, I can do that. Is there any chance the issue could be that the FBID in this case is just insanely large. Most IDs I've seen aren't more than 9 digits. I had to change all my database columns to BigInt(20).

I'm not sure how that applies to the FB plugin, just word for thought.

I'll keep my eye on it.
Epic Space Online - Google it!
B
34
S
10
G
5
Posts: 165
Reputation: 6,637

Post » Thu Jul 05, 2012 3:17 pm

Huh, that's crazy - we store the user ID as a string, but the ID length has jumped from 9 digits to 15 digits. I didn't look closely enough - I thought it was just adding a 10th digit! So instead of being in the billions, it's now in the trillions. Unusual move on Facebook's part. It's only *just* within the integer range of a double precision float!

It turns out the UserID expression was truncating the result to a 32-bit integer. Notice 100000668370244 % (2^31) = 944817476. I've changed the UserID expression to return a float now, so hopefully the result can fit now!

Leaves me wondering what Facebook are going to do next :-\
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,534

Post » Thu Jul 05, 2012 3:24 pm

Saaweeet, if you tweaked the runtime.js, any chance I could get that from you for testing? Or make the change myself on my end?

Thanks,
Epic Space Online - Google it!
B
34
S
10
G
5
Posts: 165
Reputation: 6,637

Post » Thu Jul 05, 2012 4:23 pm

There should be a new beta release out shortly.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,534

Post » Thu Jul 05, 2012 4:29 pm

Alright, thanks.
Epic Space Online - Google it!
B
34
S
10
G
5
Posts: 165
Reputation: 6,637

Post » Thu Jul 05, 2012 5:28 pm

Should be fixed in r98 now, can you confirm?
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,534

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests