Therefore, I hope someone calls me with this problem, as I am not too sure if its javascript, or if its facebook.
Here is my situation. I upgraded to Requests 2.0 on facebook, which no longer gives me the opportunity to add the exclude_ids field to the form in which users will invite their friends to the application. The purpose of this form is not just to invite friends, but to add friends as something in the application.
In short, I have a list of friends that they have already added, and I want to filter this out from the main list of my friends so that when they want to use the form, the already added friends are not displayed.
Here is my javascript to get friends:
<script language="Javascript" type="text/javascript">
var friends_filter = '<?=$myClass->getFiltered());?>';
</script>
Will return something like:
999999999,999999999,999999999,999999999,999999999,999999999,999999999
What is the list of user IDs they have NOT added that are their friends.
:
function addUser() {
FB.ui(
{
method: 'apprequests',
display: 'dialog',
title: 'Add friends',
message: 'Hey, I added you as a user/friend on such-and-such App',
data: 'added',
filters: [{name: 'Non-Added', user_ids: [friends_filter]}],
},
function(response) {
if(response && response.request_ids) {
showLoading('Adding Relatives');
var dataString = 'rids='+response.request_ids;
$.ajax({
type: "GET",
url: server_url+"ajax/add_relative.php",
data: dataString,
success: function(data){
window.location.reload();
}
});
}
}
);
}
filters: [{name: 'Non-Added', user_ids: [friends_filter]}],, IDS, . , friends_filter, " "
, , friends_filter, friends_filter , .. 999999999,999999999,999999999,999999999, , , .
, , , .
, , , , , javascript friends_filter - ?
?