无法识别的'com.facebook.platform.protocol.PROTOCOL_ACTION'额外:'com.facebook.platform.action.request.APPINVITES_DIALOG'

时间:2015-11-11 06:42:10

标签: android facebook sdk

        if (AppInviteDialog.canShow())
    {
        AppInviteContent content = new AppInviteContent.Builder()
                .setApplinkUrl(appLinkUrl)
                .setPreviewImageUrl(previewImageUrl)
                .build();

        AppInviteDialog appInviteDialog = new AppInviteDialog(context);
        appInviteDialog.registerCallback(callbackManager, new FacebookCallback<AppInviteDialog.Result>()
        {
            @Override
            public void onSuccess(AppInviteDialog.Result result)
            {
            }

            @Override
            public void onCancel()
            {
            }

            @Override
            public void onError(FacebookException e)
            {
                e.getMessage();
                int i = 0;
                i++;
            }
        });

        appInviteDialog.show(content);

}

onError函数获取errorMessage“无法识别'com.facebook.platform.protocol.PROTOCOL_ACTION'额外:'com.facebook.platform.action.request.APPINVITES_DIALOG'。”

0 个答案:

没有答案