0
votes

When a user clicks 'Cancel' when being asked for permissions, it would generate a $_GET parameter

facebook_registration.php?error=access_denied&error_code=200&error_description=Permissions+error&error_reason=user_denied&state=a2101ba3af0381cf82db6120319cad25#_=_

My question is what is the proper way of handling this type of error? The only way I see is by reading the $_GET parameter like this

<?php
     if(isset($_GET['error']))
     {
          //handle it here
     }
?>

I was under the impression that Facebook had a better way of handling this, but after searching through the documentation and Google, I might've been mistaken.

1

1 Answers