Im trying out the new graph api for facebook. I\'m trying to fetch some data using jquery ajax. This is a sample of my javascript code, very basic...
var mU
I have covered this and asked this question before. I made a quick tutorial which covers exactly this and explains it all.
In short: JSON is not made for cross domain usage according to its same-origin policy. However the work around is to use JSONP which we can do in jQuery using the supported callback parameter in facebook's graph api. We can do so by adding the parameter onto your url like
https://graph.facebook.com/19292868552?callback=?
by using the callback=? jQuery automatically changes the ? to wrap the json in a function call which then allows jQuery to parse the data successfully.
Also try using $.getJSON method.