I'm using this method in order to allow th开发者_JAVA百科e end user to invite friends:
FB.ui({method: 'apprequests', message: 'app message!', data:'tracking information for the user'});
The user is prompted with a facebook dialog in which he can choose to invite:
- All friends
- my app users (the users that have the app installed/allowed)
- Friends to Invite (those that don't have the app installed - my goal)
Or in a brief image:
I don't want the end user to have a choice here, only prompt the third option - those that don't have the app.
Can someone point me to the right direction on this? I'm using php + facebook's php sdk.
FB.ui({method: 'apprequests', message: 'app message!',filters:'app_non_users' data:'tracking information for the user'});
filters must be within an array, so filters: ['app_non_users']
,
精彩评论