javascript - Facebook requests 2.0 filter -


So I hope someone has called me to help with this problem because I am not sure that Its javascript, or if its facebook.

I have upgraded to Request 2.0 on Facebook, so that I no longer have the ability to add an Excluded_IIDS field to the form where users will invite their friends into the app. The purpose of this form is not to invite friends only, but to add friends as something in the app.

In short, I have a list of friends they've already added, and I want to filter that filter from my friends' master list so that when they want to use the form, So friends who already added

This is my javascript to get friends:

    

Something like this will return:

  999999999,999999999,999999999,999999999,999999999,999999999,999999999   

Function addUser () {FB}

.ui ({method: 'apprequests', display:' dialog ', title:' add friend ', message:' Hey, I've added you as user / friend in this way and the app ', data:' added ', filter: [{name:' non-added ', user_id: [friends_filter]}]}}, function ( Response) {if (feedback and feedback.requist_id) {showLoading ('relatives' (Data type), "url: server_url +" ajax / add_relative.php ", data: datastring, success: function (data); var dataString = 'Rids =' + response.request_ids; $ .jax ({type:" GET " {Window.location.reload ();}}}}}})}}

If you see the filter: [{name: 'non-add', user_ids: [Friends_filter]}], line is the place where I include a list of IDs, which I just want to see in the selector. The dialog is pop up, but then those IDs will be replaced by friends_filter Let me know in an error message and say "A valid user ID is This is the place where I get confused, if I copy and paste which outputs friends_filter and it lists it with the ID Friends_filter varies, i.e. 999999999,999999999,999999999,999999999, looks exactly the same, it works correctly.

I know this is a complete post and I'm sorry, but I'm at the end of my mind.

I could have thought that the only thing is that maybe my javascript variable friends_filter should be converted in some sort of form?

Any thoughts?

I was trying this code and it is working with me

  FB.ui ({method: 'apprequests', filter: ['app_non_users'], Message: 'msg here!', Title: 'title for title'}, function (response) {warning (response.request_ids ); // comes back after sending this invitation});   

If you want a filter result with a list of users' use,

  filter: [{name: 'invite friends', user_ids: & Lt; Php echo json_encode ($ users_array) ;? & Gt; }],    

Comments