Refactor method of accessing Facbook API using new classes