I'm working on a facebook app with JS SDK...
I want to create a function that makes an API call to the Graph API:
This is what I got:
function a(reference){
FB.api('/me', function(respond){
var it = respond.reference[0].name;
alert(it);
});
}
I try executing it this way but it doesn't work.
a("inspirational_people");