A Yonkers man posted video to Facebook in which he mercilessly ridicules a little Hasidic boy over his traditional haircut — and it took two days before the social-media giant finally yanked it down.

Facebook user “Quai James” put up the video on Facebook and Snapchat on Saturday morning with the caption “Had to really let my son know how i felt about the whole Jewish Haircut… Pray for the lil homie.”

The video, which went viral, shows the wide-eyed toddler standing on a sidewalk with a shaved head and long sidelocks, in the Hasidic religious tradition.

“I’d be crying if I looked like that, too, bro,” the man tells the boy, whose eyes start to fill with tears.

“That’s f–ked up what they be doing to you.”

The child, wearing a long sleeve shirt with stars and black bow, continues looking confused and sad as he stands silently while the man verbally abuses him.

“You probably had the full wash and set — they should be fired if they ain’t cut your sh-t,” the man says. “F–k it, though, bro, it’s your life.”

Seconds earlier, the man had laughed as a slightly older Hasidic boy walked past him.

The posting was gone from Snapchat after 24 hours. Someone shared it on Twitter, and it was viewed more than 1 million times — and liked more than 100,000 times — before the social-media site finally yanked it down, according to the Jerusalem Post.

But the video on Facebook, which had been shared thousands of times, remained on the site until late Monday morning, even though throngs of watchers previously demanded that it be yanked down.

Facebook initially said it wouldn’t take down the post because it “doesn’t go against one of our specific community standards.”

The site added that users should simply block the man who posted it — so they won’t have to see any more “offensive content” from him.

After the post was finally taken down by Facebook around 10:30 a.m., a company rep told The Post in an e-mail, “I can confirm that the video violates our bullying policies, and we took it down upon investigating.”