I got an error in my facebook android application. Everything is working fine. I switched my Facebook account and now I get this error.
if(AppInviteDialog.canShow()) {
                AppInviteContent content = new AppInviteContent.Builder()
                        .setApplinkUrl(VPPreferences.getString(VPPreferencesKeys.INVITE_SCREEN_URL_FOR_FB, ""))
                        .setPreviewImageUrl(getString(R.string.invite_fbimage_url))
                        .build();
                AppInviteDialog appInviteDialog = new AppInviteDialog(this);
                 sCallbackManager = CallbackManager.Factory.create();
                appInviteDialog.registerCallback(sCallbackManager, new FacebookCallback<AppInviteDialog.Result>() {
                    @Override
                    public void onSuccess(AppInviteDialog.Result result) {
                        ToastNotificationUtil.showMessageToast(InviteSelectorScreen.this, getString(R.string.invite_succ));
                    }
                    @Override
                    public void onCancel() {
                        ToastNotificationUtil.showMessageToast(InviteSelectorScreen.this, "Invite canceled");
                    }
                    @Override
                    public void onError(FacebookException e) {
                        ToastNotificationUtil.showMessageToast(InviteSelectorScreen.this, "Invite failed ");
                    }
                });
                appInviteDialog.show(content);
            }
source
share