我使用此功能提示最终用户选择多个朋友来邀请:
function sendRequest() {
FB.ui({
method: 'apprequests',
message: 'Check out this application!',
filters: ['app_non_users'],
title: 'Send your friends an application request',
}
这项工作很好,但我想限制用户的朋友数量 可以在弹出的facebook ui中邀请。我怎么能做到这一点?
答案 0 :(得分:1)
request_ids = FB.ui({
method: 'apprequests',
access_token: '<?php echo $_SESSION['facebook_access_token']; ?>',
display: 'iframe',
max_recipients: '5',
message: 'message',
data: 'data' });