Forum QuickConnect Best practice for user friend queries

Discussion and help relating to PlayerIO's QuickConnect feature, including Facebook Connect and Kongregate Connect.

Best practice for user friend queries

Postby TomBeatnik » August 14th, 2013, 2:43 pm

So while in general I am finding PlayerIO pretty awesome it does appear to lack support for friend systems.
Whats the correct way to query if another user exists (has registered with your game) with quick connect?

I want to allow a user to type in a known friend name without ever encountering them in a game room. Given you don't know if a user has a 'simple' or a 'facebook' login the only solution I've thought of is a database table to match username to quickconnect username.

Am I missing something?
TomBeatnik
Paid Member
 
Posts: 5
Joined: February 27th, 2013, 5:15 pm

Re: Best practice for user friend queries

Postby SmallJoker » August 17th, 2013, 1:49 pm

Use the BigDB -> PlayerObjects, there you can search by Keys and indexes
SmallJoker
 
Posts: 50
Joined: March 28th, 2012, 12:22 pm

Re: Best practice for user friend queries

Postby Henrik » August 18th, 2013, 8:21 am

Exactly what SmallJoker said. If you have a global username for each player, put that on the PlayerObject, and make an index on that table on that property, so that you can search on it.

Note that BigDB doesn't have constraints, so if you want the usernames to be unique, you have to do that check yourself when each user registers theirs.
Henrik
.IO
 
Posts: 1832
Joined: January 4th, 2010, 1:53 pm


Return to QuickConnect



cron