I tried to grab my Facebook ID using open graph API. It is working if i use browser and browse to:
https://graph.facebook.com/IvanKristiantoBlog
But i want to grab it using JQuery, here is my sample code:
http://jsbin.com/ejogu3/2/edit
But when i debug using Firebug, not data return.
Do i miss something?
Any help is greatly appreciated.
Thanks
Ivan
actually Javascript does not allow cross-domain request due the same-domain-policy.
If I see it right you try to do so.
Better way would be to make the request on the server side.
But there are ways to make cross-domain request in JS.
check this:
http://james.padolsey.com/javascript/cross-domain-requests-with-jquery/