This issue is not anything to do with using the facebook "social login" scripts, that would be serious news spread all over if that had a problem. If you want the technical side of things about it all works then facebook have a nice developer guide
https://developers.facebook.com/docs/facebook-login . This is more that facebook has people watching for password and username dumps and checks the results against their database, if it detects a match to a leaked database then it forces a password change.
It is more likely that the OP registered for some poorly secured forum/website/shop/whatever and reused a password, whether intentionally or unintentionally (even if you do secure passwords are they combinations of the same word fragments and numbers that mean something to you? Most seem to use 3 words and maybe 4 numbers, however as most can not be bothered to learn a password longer than 9 or so characters that is a rather limited number of combinations). Sad poor security led to a leak somewhere and facebook got a dump from that.