Take that up with the law, then, because both the advertiser and the publishing platform are on the hook for discriminatory advertisements. The advertiser because they violated the law, and the publisher (in this case, Facebook) because they abetted that violation.
42 U.S. Code § 3604 - Discrimination in the sale or rental of housing and other prohibited practices:
As made applicable by section 3603 of this title and except as exempted by sections 3603(b) and 3607 of this title, it shall be unlawful—
a) To refuse to sell or rent after the making of a bona fide offer, or to refuse to negotiate for the sale or rental of, or otherwise make unavailable or deny, a dwelling to any person because of race, color, religion, sex, familial status, or national origin.
b) To discriminate against any person in the terms, conditions, or privileges of sale or rental of a dwelling, or in the provision of services or facilities in connection therewith, because of race, color, religion, sex, familial status, or national origin.
c) To make, print, or publish, or cause to be made, printed, or published any notice, statement, or advertisement, with respect to the sale or rental of a dwelling that indicates any preference, limitation, or discrimination based on race, color, religion, sex, handicap, familial status, or national origin, or an intention to make any such preference, limitation, or discrimination.
(emphasis added)
If you’re going to go into the business of real estate advertising, it is your responsibility to make sure that the tools you build and the options you provide to advertisers comport with all applicable laws and regulations. Ignorance of the law is not an excuse.