istediğim şey token al fonksiyonundan gelen access-token id yi <pre id="access-token"></pre> şeklinde yazdırabiliyorum işte gelen bu bilgiyi post etmek istiyorum onuda yolla fonksiyonuyla halletmek istiyorum ama data bölümüne ne yazmalıyım aşşağıda kodların bi kısmı var
function tokenal() {
var
pre = document.getElementById('access-token'),
showSession = function(response) {
var html = 'Not Connected';
if (response.authResponse) {
html = response.authResponse.accessToken;
}
pre.innerHTML = html;
};
FB.getLoginStatus(function(response) {
showSession(response);
FB.Event.subscribe('auth.sessionChange', showSession);
});
}
function yolla(){
$.ajax({
type: "POST",
url: "veri.php ",
data: {"gonderilen":$("input[name=sayi]").val()},
success: function(sonuc){
alert(sonuc);
}
});
}
</script>