Android – “dialog failed with unknown” error response. Facebook application invitation, switching in FB account
•
Android
I made an error in my android Facebook app invitation. Everything is fine. I switched my account from Facebook and now I receive 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 one rror(FacebookException e) {
ToastNotificationUtil.showMessageToast(InviteSelectorScreen.this, "Invite Failed ");
}
});
appInviteDialog.show(content);
}
resolvent:
Since Facebook developers, their policies have changed significantly
Please go to the given link and change the ownership on the check URL node_ Permissions {can_customize_link_posts} field
I hope this can help
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码