They've messed this up in the past, see this legendary bug bounty report [1]
1. https://whitton.io/articles/xss-on-facebook-via-png-content-...