well here is the thing, i have this print using php:
echo '<a href="'.$npeurl.'"><img src="css/img/confaceEN.png" alt="Access with Facebook"></a>';
The $npeurl var is generated when the page is load, using the facebook API and is something like this:
<a href="https://www.facebook.com/dialog/oauth?client_id=111222333444&redirect_uri=http%3A%2F%2Finfoabout.me%2FISS%2Ftest.php%3Fclient%3Dzara&state=607a11c13ddb4cc4e5f6af8458cc0f65&scope=email%2C+user_birthday&display=page"><img src="css/img/confaceEN.png" alt="Access with Facebook"></a>
The problem is that in the page there is a check button that by default is unchecked, but if the user checks it, i need to add a parameter to the redirect_uri property, something like: &noemail=1
What do you think? is this possible using javascript?
Hope this helps.