Facebook app invite doesn't work

I’m using the cordova-plugin-facebook4 which is suggested here: http://ionicframework.com/docs/native/facebook/

Logging in with my facebook account works fine. But when I try to do an app invite I’m getting the error message: “Facebook error: Error occurred in dialog’s operation”.

I had a look into the source code but there are only a few lines of code which called the facebook sdk function:

 AppInviteContent.Builder builder = new AppInviteContent.Builder();
 builder.setApplinkUrl(url);
 if (picture != null) {
      builder.setPreviewImageUrl(picture);
 }

 showDialogContext = callbackContext;
 PluginResult pr = new PluginResult(PluginResult.Status.NO_RESULT);
 pr.setKeepCallback(true);
 showDialogContext.sendPluginResult(pr);

 cordova.setActivityResultCallback(this);
 appInviteDialog.show(builder.build());

Could it be a problem with the facebook SDK? Does anyone here face the same problem?

If everything works fine for you please let me know which version of the plugin, cordova and android-platform are you using.