Encapsulate functions for facebook parsing