javascriptfacebookfacebook-requests

"Can only send requests to friends or users of this application"


Using the code

FB.ui({
            method: 'apprequests',
            filters: 'app_non_users',
            message: $filter('i18n')('voices-invite-facebookMessage'),
            to: users // an array of uIDs
        }, function(data){
            console.log(JSON.stringify(data));
        });

I get the following dialog:

Can only send requests to friends or users of this application

From the documentation I fought I was able to invite friends to use my app, did I understand it wrong?

Thanks


Solution

  • I figured out that actually the people I was inviting weren't "my friends". The access token provided to fetch the friends and the one that the SDK logged in, and used to do the FB.ui request weren't the same. Sorry for your time...