Facebook, How do I recognize a User with the same

Get help using Construct 2

Post » Mon Nov 28, 2011 4:58 am

...name !

Yes, when a user connect, log in, I can have his name.
I can save some element on a SQL so that, when he comes back, I can retrieve those elements.

But, if another facebook user with the same name play the same game.
only with the name, it will retrieve the informations of the first one.

How can I find another element that will make my user unique ?

Thanks... hope I'm clear enough...
B
12
S
2
G
5
Posts: 73
Reputation: 3,570

Post » Mon Nov 28, 2011 6:09 am

I'm currently looking into the same problem.

Looks like for now you'll have to "hack" the plugin if that's even possible, to give you the user_id. It should already know it since hi-scores are supported but it seems it's all internal. Studying the code I guess you should be able to "simply" copy paste one of the expressions and alter them so you can retrieve the user_id.McKack2011-11-28 06:10:42
B
88
S
33
G
7
Posts: 31
Reputation: 8,425

Post » Mon Nov 28, 2011 2:59 pm

I've added an expression to the Facebook object for the next build to get the User ID.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Mon Nov 28, 2011 3:42 pm

Yeah!
You are great!
B
12
S
2
G
5
Posts: 73
Reputation: 3,570

Post » Tue Nov 29, 2011 6:58 pm

Awesome! Looking forward to it.
B
88
S
33
G
7
Posts: 31
Reputation: 8,425


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound, randomly and 25 guests