I am trying to parse all the id's of the user likes with jquery. this is what i did but it doesnt work.
$("#demo").live("click", function () {
var url="https://graph.facebook.com/facebookid/likes?access_token=XXXX?callback=?";
$.getJSON(url, function(item){
$.each(item.data, function(i,like) {
var name = like.id;
$("#dv").append(name);
});
});
});
You can't use simple AJAX ($.get, $.post, $.ajax) for request to another domains. You would read about JSONP... or about FB JA \S \