I have some code
<script>
FB.Event.subscribe('auth.login', function(response)
{
FB.api('/me', function(response) {
alert(response.id);
});
</script>
An alert screen appears and shows the value i want (response id). but i would like to assign this value to a php value called $id i know how to do this but because the value is in script it wont work, i have tried adding in the below code without success
</script> <?php $id ?> <script> response.id </script> <?php ; ?> <script>
this code is added just below the alert(response.id);