开发者

Facebook api - Invite only those that don't have the app

开发者 https://www.devze.com 2023-02-25 19:56 出处:网络
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\'});

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:

  1. All friends
  2. my app users (the users that have the app installed/allowed)
  3. Friends to Invite (those that don't have the app installed - my goal)

Or in a brief image:

Facebook api - Invite only those that don't have the app

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'],

0

精彩评论

暂无评论...
验证码 换一张
取 消