Uber Technologies Inc. has been under fire for advertising on Twitter that it was operating at New York’s Kennedy International Airport during a taxi strike protesting the Trump administration’s executive order to restrict immigrants and refugees from seven Muslim-majority countries.

Uber’s actions prompted a #DeleteUber hashtag to go viral on social media and was followed by Lyft’s co-founders announcing it would donate $1 million to the American Civil Liberties Union.

It also prompted Uber chief executive Travis Kalanick to write a Facebook FB, -0.89% post about how the company would set up a $3-million legal defense fund to help drivers affected by the immigration ban.

Among the types of Facebook users who were most likely to see that post? People whose internet activity indicates they are interested in the ACLU.

Common Goal co-founder Eric Beard received a sponsored ad in his Facebook timeline from Uber. The ad was targeted at “people interested in American Civil Liberties Union,” according to Facebook.

Facebook allows advertisers to target ads to specific people based on a variety of factors, including location, demographics and interests, which is based on self-reported interests, hobbies and pages that users like. Facebook also allows advertisers to target ads based on a user’s behaviors, such as other sites they have visited or purchases they have made. That data is provided to Facebook by third-party partners.

Beard said he had visited the ACLU website recently and made a donation, and he also likes the ACLU page on Facebook.

An Uber spokesperson says that the company has since stopped running the ads promoting Kalanick’s post.

Though, not everyone took issue with Uber’s targeting strategy.

Kalanick’s Facebook post noted that Uber has already reached out to the “dozen or so” employees affected by the immigration ban.

His post continues:

“While every government has their own immigration controls, allowing people from all around the world to come here and make America their home has largely been the U.S.’s policy since its founding. That means this ban will impact many innocent people—an issue that I will raise this coming Friday when I go to Washington for President Trump’s first business advisory group meeting.

Ever since Uber’s founding we’ve had to work with governments and politicians of all political persuasions across hundreds of cities and dozens of countries. Though we share common ground with many of them, we have had areas of disagreement with each of them. In some cases we’ve had to stand and fight to make progress, other times we’ve been able to effect change from within through persuasion and argument.”

Kalanick is a member of a White House business advisory group along with Elon Musk, chief executive of Tesla TSLA, +4.42% , and Ginni Rometty, CEO of IBM IBM, -1.72% , among others. Kalanick’s decision to join the White House council was recently met with protests at the Uber headquarters in San Francisco, according to several news outlets. Musk’s participation was also criticized. Kalanick explained in the blog post that he chose to be part of the council because he believes the company can be more effective by partnering with and speaking up to governments.

“Whatever your view please know that I’ve always believed in principled confrontation and just change; and have never shied away (maybe to my detriment) from fighting for what’s right,” Kalanick wrote.

Caitlin Huston contributed to this report.