有没有办法像使用 FBML - fb:multi-friend-selector 一样限制用户可以发送的邀请数量?有了它,您可以指定“max”,它会限制一个人可以发送的邀请数量。在脚本之前,我将运行一个 db 查询以查看它们生成了多少 request_ids,然后,我会将 request_ids 添加到数据库中。但是,首先我需要能够限制请求。50太多了。我希望将其降至 5 或 10。现在,它运行良好。我只需要这个功能。
<script>
function callAppReq() {
FB.init({
appId : 'xxx',
cookie: true,
channelUrl : 'https://apps.facebook.com/app',
oauth : true
});
request_ids = FB.ui({
method: 'apprequests',
access_token: '<?php echo $_SESSION['facebook_access_token']; ?>',
display: 'iframe',
filters: ['app_non_users'],
message: 'message',
data: 'data'
});
}
var t=setTimeout("callAppReq()",100);
</script>