There are a few ways that Facebook could have gotten your credit card number. One way is if you entered it into the site yourself. Another way is if Facebook acquired it from another site or company that you have given your information to.