Hey all, I'm trying to create a feed using jquery ajax and requesting data from facebooks social graph using json method.
Can someone please tell me why it isn't working? i've tried $.getJSON();
to no luck!
This is the code I have just tested and still no luck:
$(document).ready(function(){
var url = "http://graph.facebook.com/prettyklicks/feed?limit=3&callback=?pk";
$.getJSON(url,function(json){
var html = "<ul>";
$.each(json.data,function(i,fb){
html += "<li>" + fb.message + "</li>";
});
html += "</ul>";
$('.facebookfeed').html(html);
});
});