Hello, what I a trying to accomplish is to get friends from facebook and then send all the friends to my server to process them accoridngly. SO eveyrhtign works if I dont insert the ajax statement, but as soon as I insert the ajax statement I do not see connect to facebook anymore. I am open to any other ways of doing this as well.
get friends
FB.api('/me/friends', function(response) {
var result_holder = document.getElementById('result_friends');
var friend_data = response.data.sort(sortMethod);
$.ajax({
url: 'test.php',
data: friend_data,
type: 'POST',
dataType: 'json',
cache: false,
success: function(responseJSON) {
alert("HELLO");
});
.
.
.
. more stuff