Sign In Register

How can we help you today?

Start a new topic
Answered

DeviceAuthentication and Social accounts merge

Hi. I have a problem with merging data after DeviceAuthentication. When I launch my game in editor or device, and do FacebookConnectRequest, I getting different responses from Sparks, response may contains "newPlayer":true or "newPlayer":false. For testing authentication, every time I delete player data with NoSQL explorer at GS.
However if I getting "newPlayer":false on FacebookConnectRequest  (after player data removed and DeviceAuthentication), my FbConnected player currency1 is zero, my  DeviceAuthenticated player has 100 coins.


Best Answer

Problem solved, I forgot to delete player from externalAuthentication table


1 person has this question

Deleting player data from NoSQL probably confuses things.. I assume you delete the player from the player collection, but the Facebook connection data remains in the external authentications collection. Deleting from the external authentication collection as well might work.

But I think the simpler thing to do for your testing, is to use different device ids and Facebook test users instead of deleting the player in NoSQL. You can just use any string for the device id in DeviceAuthentication, it doesn't have to be the actual id of the device you're using. 

Answer

Problem solved, I forgot to delete player from externalAuthentication table

Thanks, facebook test users really helpful

Login to post a comment