I'm using the new PHP SDK 3.0 and I use the new getLoginUrl() function with the following parameters.
$paramsLogin = array(
'scope' => PERMISSIONS,
'redirect_uri' => REDIRECT_URI
);
If the user clicks "cancel" on the application permissions popup, I redirect the user on an error page which contains a message explaining that he has to accept the permissions in order to participate to the contest and a new login button.
But when i click on the login button again, facebook displays the following message :
Sorry, something went wrong. We're working on getting this fixed as soon as we can.
If I wait for a while then click again on the login button It works as expected.
I read somewhere that facebook should be displaying "Leave application" in the permission popup instead of "Cancel" I guess this is the issue.
Anyone has any clue on how to solve that problem or should I submit a bug report on facebook.