Closing App Not Allowing App to Retrieve Information Via Facebook API

As the title suggests, I am trying to have my app close instead of continuing to my homepage when a user does not accept the app under the Facebook API plugin. For example, after a user logs in with Facebook, they are asked for approval of the app. In the case that the user accepts, it continues to the homepage. If the user does not accept, the app closes.

How would I accomplish this?

1 person has
this question