mbrevoort / jquery-facebook-multi-friend-selector

A jQuery based Alternative Facebook Multi-Friend Selector that uses the Graph API
Other
266 stars 64 forks source link

Send invitations to selected friends #30

Closed kennym closed 12 years ago

kennym commented 12 years ago

Is it possible to send invitations or do other interactions with the Social Graph with this plugin?

lacco commented 12 years ago

As far as I see it only helps you selecting friends - posting to someone's feed or invite a friend has to be implemented by yourself.

kennym commented 12 years ago

I solved this issue by making use of the Facebook JavaScript SDK. The code looks like this:

        var friendSelector = $("#jfmfs-container").data('jfmfs');             
        var user_ids = friendSelector.getSelectedIds().join(',');
        FB.ui({method: 'apprequests',
          message: 'Hey! Join us!',
          to: user_ids, 
        });
kennym commented 12 years ago

@lacco just saw your answer! Yeah, I figured out that this plugin does not cover that part. Thanks!