android - newMeRequest's onCompleted method user is always null -
android - newMeRequest's onCompleted method user is always null -
when create newmerequest using facebook android sdk
request.newmerequest(session, new request.graphusercallback() { @override public void oncompleted(graphuser user, response response) { if (user != null) { log.e(tag, "logged in..." + user.getname()); } else { log.e(tag, "logged in... user==null"); } } }).executeasync();
logcat says "logged in.. user==null"
what should do?
maybe can add together parameter specific fields :
request request = request.newmerequest(currentsession, new request.graphusercallback() { .... } bundle parameters = new bundle(); // request_fields : id,name,email parameters.putstring(fields, request_fields); request.setparameters(parameters); request.executebatchasync(request);
android facebook
Comments
Post a Comment