fb:多朋友选择器exclude_ids不工作,显示所有朋友

时间:2011-02-24 09:21:48

标签: facebook fbml xfbml

这是代码:

<fb:serverFbml width="650" "margin-left: 10px;" >
        <script type="text/fbml">
<fb:fbml>
<fb:request-form
        action= "<?=$action?>"
        target= "<?=$target?>"
        method= "<?=$method?>"
        invite= <?=$invite?>
        type= "<?=$type?>"
        label = "<?=$label?>"
        content="<?=$content?>"
        exclude_ids = "12312345,2345235"
        >

<fb:multi-friend-selector showborder="false" actiontext= "Invite your friends"  rows="5" cols="5" bypass="skip" target="_top" />
</fb:request-form>
</fb:fbml>
</script>
</fb:serverFbml>

所有东西都被渲染得很好,但是FBML并没有排除参数exclude_ids中提到的IDS,并且它在朋友选择器的普通版和精简版中都不起作用。有人可以帮我解决一下吗?

1 个答案:

答案 0 :(得分:1)

编辑:

其实我刚发现你的错误,你把exclude_ids放在请求表单而不是多朋友选择器中:

<fb:multi-friend-selector showborder="false" actiontext= "Invite your friends" rows="5" cols="5" bypass="skip" target="_top" exclude_ids="121212232,233423423" />


我相信你犯了我之前做的同样的错误,那些id(12312345,2345235)看起来不像facebook uids,它们太低了。

当我在数据库中将uids作为整数引入时,我遇到了同样的问题,uids不适合整数并且它们被破坏。对于存储fb uid,你需要一个BigInteger。

相关问题