Diafol, anybody pls help.
i have this javascript code
<script>
FB.init({
appId : '00000000000000',
frictionlessRequests: true,
});
function sendRequestToRecipients() {
var user_ids = document.getElementsByName("user_ids")[0].value;
FB.ui({method: 'apprequests',
message: 'Great App',
to: user_ids,
}, requestCallback);
}
function sendRequestViaMultiFriendSelector() {
FB.ui({method: 'apprequests',
message: 'My Great Request'
}, requestCallback);
}
function requestCallback(response) {
console.log(response);
for (var i = 0; i < response.to.length; ++i)
{
alert(response.to[i]);
}
}
</script>
Now all i want to do is get the value that is in this
alert(response.to[i]);
and pass it to php and insert it into mysql for future use. Am very bad at javascript, pls help.