You can checkout Facebook’s best practices page for more and up-to-date details on how to detect its crawlers and scrapers. Note that Facebot has been added to the list of user-agent strings.
https://stackoverflow.com/questions/8626812/how-to-recognize-facebook-user-agent



