i get response using facebook api get all value in json and also get single value. this value i want to store in php variable any idea for that.
function testAPI() {
console.log('Welcome! Fetching your information.... ');
FB.api('/me', function(response) {
console.log(JSON.stringify(response));
console.log('Successful login for: ' + response.name);
document.getElementById('status').innerHTML =
'Thanks for logging in, ' + response.email + '!';
var email = response.email;
});
}
<div id="status" ></div>
i am create email varibale in script how to store as my php varibale can you plase suggest me?