我在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.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}字段.
希望这可以帮助
原文地址:https://www.jb51.cc/android/1075107.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。