Forum BigDB C# connect bigDB and edite it

Discussion and help relating to the PlayerIO database solution, BigDB.

C# connect bigDB and edite it

Postby abdelhadi123654 » April 13th, 2017, 5:37 pm

hey guys i want to connect to my fb game using c# since the connection is public i used this code but i got many errors maybe to facebook auth line missed idk here is the code


using PlayerIOClient;

PlayerIO.Connect( "stickrunhacks-rwnpv5sw8eojhjkop97g", "public", "105478229986960", "Auth" )
client.BigDB.LoadOrCreate("TheBros", 105478229986960
delegate (DatabaseObject result){
if (!result.Contains("Type")) {
//Empty object, initialize it
result.Set("Type", "admin");
}
result.Save();
}
)
abdelhadi123654
 
Posts: 2
Joined: November 24th, 2016, 8:34 pm

Re: C# connect bigDB and edite it

Postby Henrik » April 16th, 2017, 6:52 am

You need to change the authentication type of your connection to Facebook in the Connection settings for your game, and you need to pass in the user's Access Token to authenticate as that user:

https://playerio.com/documentation/serv ... n/facebook
https://developers.facebook.com/docs/fa ... ss-tokens/
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: C# connect bigDB and edite it

Postby King Kong » July 19th, 2018, 3:42 pm

And this is how PlayerIO games get hacked, unless the db loads from C# and you can close Save. :D
King Kong
 
Posts: 1
Joined: April 5th, 2017, 1:07 pm


Return to BigDB



cron