I am trying to pull the status updates from a Facebook Page. I have the url for the feed:
http://www.facebook.com/feeds/page.php?format=rss20&id=141941024749
Putting that into the browser returns the feed, however when I try to pull the same thing via ajax I get null. Here is the jQuery code I am using.
$.ajax({
url: "http://www.facebook.com/feeds/page.php?format=rss20&id=141941024749",
success: function(data) {
alert(data)
return false;
}
});
Seems like it should be straight forward. Am I missing something?
Short answer:
You cannot cross-domain ajax.
Long answer:
You’ll need to write a server-side script or application to proxy the request for you, then hit that as opposed to the actual feed.