Userlist from facebook users for variables on android firebase? -


is best way create user list facebook users hold variables on firebase? want each user have few int variables, tokens, spins, , biggestwin. createuser method doesn't seem add data firebase, , doesnt seem work facebook code. toasts "not created"

public void createuser(string memail, string mprovide){      firebase rootref = new firebase("https://luckycashslots.firebaseio.com/data/");     firebase userref = rootref.child("users");      userref.setvalue(mauthdata.getuid());      firebase newref = new firebase("https://luckycashslots.firebaseio.com/data/users/" + mauthdata.getuid() + "/");     firebase tokref = newref.child("tokens");     firebase spinref = newref.child("spins");      newref.setvalue(mauthdata.getprovider());      tokens token = new tokens("100");     spins spin = new spins(55);      tokref.setvalue(token);     //spinref.setvalue(spin);      rootref.createuser(memail, mprovide , new firebase.valueresulthandler<map<string, object>>() {          @override         public void onsuccess(map<string, object> result){             toast.maketext(getapplicationcontext(), "yes-uid=" + result.get("uid") , toast.length_long).show();         }          @override         public void onerror(firebaseerror firebaseerror){             toast.maketext(getapplicationcontext(), "not created", toast.length_long).show();         }      });  } 

creating email+password user or authenticating user facebook indeed not store data user in firebase database.

if want store user data in database, see section on storing user data in firebase documentation.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -