I'm currently developing a Facebook app using the JS SDK...
My objective is to implement a function that can make API calls to the Graph API:
This is what I have come up with so far:
function fetchUserData(data){
FB.api('/me', function(response){
var info = response.data[0].name;
alert(info);
});
}
I attempted to run this code, but unfortunately, it did not yield any result.
fetchUserData("inspirational_people");