Error handling fixed when requesting access token from Facebook