@ReactMethod public void logInWithReadPermissions(ReadableArray permissions,final Promise promise){
  final LoginManager loginManager=LoginManager.getInstance();
  loginManager.registerCallback(mCallbackManager,new LoginManagerCallback(promise));
  Activity activity=getCurrentActivity();
  if (activity != null) {
    loginManager.logInWithReadPermissions(activity,reactArrayToJavaStringCollection(permissions));
  }
}

@ ReactMethod public void logInWithReadPermissions ( ReadableArray permissions , final Promise promise ) { final LoginManager loginManager = LoginManager . getInstance ( ) ; loginManager . registerCallback ( mCallbackManager , new LoginManagerCallback ( promise ) ) ; Activity activity = getCurrentActivity ( ) ; if ( activity != null ) { loginManager . logInWithReadPermissions ( activity , reactArrayToJavaStringCollection ( permissions ) ) ; } }
attempts a facebook login with the specified read permissions .
