Facebook will no longer allow targeted ads based on education or employment profiles after acknowledging that some users were describing themselves as anti-Semitic.