public static void askPermissions(
      Context context,
      Facebook facebook,
      String permission,
      IFBDialogEventHandler dialogEventHandler) {
    AskPermissionsActivityEventHandler eventHandler =
        new AskPermissionsActivityEventHandler(facebook, permission, dialogEventHandler);

    if (!MNProxyActivity.startProxyActivity(context, eventHandler)) {
      eventHandler.cleanup();
    }
  }
  public static void showGenericDialog(
      Context context,
      Facebook facebook,
      String action,
      Map<String, String> params,
      IFBDialogEventHandler dialogEventHandler) {
    GenericDialogActivityEventHandler eventHandler =
        new GenericDialogActivityEventHandler(facebook, action, params, dialogEventHandler);

    if (!MNProxyActivity.startProxyActivity(context, eventHandler)) {
      eventHandler.cleanup();
    }
  }
  public static void publish(
      Context context,
      Facebook facebook,
      String prompt,
      String attachment,
      String targetId,
      String actionLinks,
      IFBDialogEventHandler dialogEventHandler) {
    PublishActivityEventHandler eventHandler =
        new PublishActivityEventHandler(
            facebook, prompt, attachment, targetId, actionLinks, dialogEventHandler);

    if (!MNProxyActivity.startProxyActivity(context, eventHandler)) {
      eventHandler.cleanup();
    }
  }
  public static boolean authorize(
      Context context,
      Facebook facebook,
      String[] permissions,
      boolean useSSO,
      IFBDialogEventHandler dialogEventHandler) {
    LoginActivityEventHandler eventHandler =
        new LoginActivityEventHandler(facebook, permissions, useSSO, dialogEventHandler);

    if (!MNProxyActivity.startProxyActivity(context, eventHandler)) {
      eventHandler.cleanup();

      return false;
    } else {
      return true;
    }
  }