public void logStartLogin(LoginClient.Request pendingLoginRequest) { Bundle bundle = newAuthorizationLoggingBundle(pendingLoginRequest.getAuthId()); // Log what we already know about the call in start event try { JSONObject extras = new JSONObject(); extras.put(EVENT_EXTRAS_LOGIN_BEHAVIOR, pendingLoginRequest.getLoginBehavior().toString()); extras.put(EVENT_EXTRAS_REQUEST_CODE, LoginClient.getLoginRequestCode()); extras.put( EVENT_EXTRAS_PERMISSIONS, TextUtils.join(",", pendingLoginRequest.getPermissions())); extras.put( EVENT_EXTRAS_DEFAULT_AUDIENCE, pendingLoginRequest.getDefaultAudience().toString()); extras.put(EVENT_EXTRAS_IS_REAUTHORIZE, pendingLoginRequest.isRerequest()); bundle.putString(EVENT_PARAM_EXTRAS, extras.toString()); } catch (JSONException e) { } appEventsLogger.logSdkEvent(EVENT_NAME_LOGIN_START, null, bundle); }