I have created a very simple app to invite friends.
This is my code:
function sendRequestViaMultiFriendSelector() {
FB.ui({
method: 'apprequests',
message: 'You should learn more about this awesome game.'
});
}
The friends selector appears but it doesn’t work 🙁
Live demo and complete source code:
That code works fine for me.
Jumping slightly ahead and guessing a little; when you say it doesn’t work, are you referring to a case where the recipients don’t see the request?
If so, it’s possible you haven’t configured a Canvas App (i.e a way to access your app via apps.facebook.com/something ) – requests are only valid for mobile or canvas apps and are hidden otherwise.
See https://developers.facebook.com/docs/requests/ for more information: