facebookfacebook-fbml

Limit friends invitation in Facebook Application + Invited users IDS + disabling invited users


I'm stuck on these three things. Firstly, I'd like to limit invitation count depending on users action i.e. max invitations to 3 friends. Not all, not 30, just 3. I set max attribute, but it doesn't work. I'm using FBML: . My second problem is that I can't get IDS of users, which has been invited by currently user. I'd like to save to database those invited IDs to use for later. And most strange, third problem, is it possible to disable already invited users within multi-friend-selector dialog, that they can't be invited many times?

I found solution for 3rd problem: exclude_ids. I also found solution (damn mistake) with first - limit (max="3" attribute on multi-friend-selector) problem. At least how can I get submitted/posted/selected IDs of invited users?


Solution

  • Using the JS SDK you can use the max_recipients. I don't know why they do not have documented that.

    Here is a sample

    FB.ui(
    {
        method: 'apprequests',
        message: 'My Great Request',
        max_recipients:1
    }
        , 
        requestCallback
    )