In my app, I have the following code:
$loginUrl = $facebook->getLoginUrl( array( 'scope' => 'publish_stream' ) );
header("Location: ".$loginUrl);
which takes the user to facebook and asks them:
'[oshirowanens app] would also like permission to:
Post on your behalf
This app may post on your behalf, including status updates, photos and more.
Allow - Skip
If I click Skip
, I am redirected back to my app, where I would expect to see the following url parameteres error
, error_reason
, and error_description
similar to what happens when I user fails to login into their facebook account?
(optional) The URL to redirect the user to once the login/authorization process is complete. The user will be redirected to the URL on both login success and failure, so you must check the error parameters in the URL as described in the authentication documentation. If this property is not specified, the user will be redirected to the current URL (i.e. the URL of the page where this method was called, typically the current URL in the user's browser).
Source: https://developers.facebook.com/docs/reference/php/facebook-getLoginUrl/
Does something like that exist for skipping a permissions authentication request like the publish_stream
?