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'。”