Refactor the facebook connection code to use the new models.