I have used the following codes to exclude facebook app from my app chooser:
List targetedShareIntents = new ArrayList(); In
Android N (API 24) introduces blacklist Intent.EXTRA_EXCLUDE_COMPONENTS, which is better and simpler than whitelist Intent.EXTRA_INITIAL_INTENTS.