Finalized implementation of authenticating with the API over Facebook