开发者

Facebook Request 2.0 apprequests and exclude_ids

开发者 https://www.devze.com 2023-03-18 17:30 出处:网络
Is it possible to exclude certain Facebook IDs in the apprequests dialog like the exclude_ids parameter in the old fb:multi-friend-selector?

Is it possible to exclude certain Facebook IDs in the apprequests dialog like the exclude_ids parameter in the old fb:multi-friend-selector? I know about the filters property, but it seems not suffic开发者_开发百科ient.


UPDATE: Exclude Ids are now supported with Requests 2.0. You can pass a comma delimited list of UIDs with:

FB.ui({method: 'apprequests',
  message: 'Hello World',
  exclude_ids: '499802852,499804089'
  }, requestCallback);

Docs are at: https://developers.facebook.com/docs/reference/dialogs/requests/


It should be an array, example:

FB.ui({method: 'apprequests',
    message: 'Hello World',
    exclude_ids: ['499802852','499804089'],
}, requestCallback);
0

精彩评论

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