Error "Dialogue with the unknown." Facebook is invited to switch the fb account

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);
            }
+4
source share
2 answers

Quote from Facebook Developers major changes are taking place in their policies.

As of November 7, 2017, link settings are available, however, the link must belong to the publication page, and the access token for the page is required.

To verify ownership, check property_permissions {can_customize_link_posts} in the URL node. You must name this endpoint before posting new links.

, un-scraped . .

2.10 , , , . caption .

property_permissions {can_customize_link_posts} URL node.

,

+2

Hamza, :

Facebook SDK 4.28.0 - 7 2017 , Invites . https://developers.facebook.com/docs/app-invites/android/

SDK 4.28.0 Invites . 5 2018 .

, - , , firebase.

,

+1

Source: https://habr.com/ru/post/1691865/


All Articles