我在Android facebook app邀请中出错.一切都很好.我从Facebook切换帐户,现在我收到此错误.
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); }
解决方法:
从Facebook Developers开始,他们的政策发生了重大变化.
As of November 7, 2017, link customization is available however the
link must be owned by the posting page and a page access token is
required. @H_403_18@To verify ownership, check the
ownership_permissions{can_customize_link_posts} fIEld on the URL node.
You must call this endpoint before posting new links.Without this
step, custom link page posts will not work for un-scraped links. See
our link Ownership GuIDe for more information.For versions 2.10 and
lower, picture, name, thumbnail, and description are deprecated.
caption is deprecated for all versions.
请转到给定链接并更改检查URL节点上的ownership_permissions {can_customize_link_posts}字段.
希望这可以帮助
总结以上是内存溢出为你收集整理的android – “Dialog failed with unknown”错误响应. Facebook应用程序邀请,在fb帐户的切换全部内容,希望文章能够帮你解决android – “Dialog failed with unknown”错误响应. Facebook应用程序邀请,在fb帐户的切换所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)