fb:多朋友选择器 except_ids 不起作用,显示所有朋友
这是代码:
<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 没有排除参数 exclu_ids 中提到的 IDS,并且它在朋友选择器的普通版本和压缩版本中都不起作用。谁能帮我解决这个问题吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
编辑:
实际上我刚刚发现了您的错误,您将 except_ids 放在请求表单中,而不是多朋友选择器中:
我相信你犯了和我之前犯的同样的错误,那些id(
12312345,2345235
) 看起来不像 facebook uids,它们太低了。当我在数据库中将 uids 作为整数引入时,我遇到了同样的问题,uids 不适合整数并且它们会损坏。要存储 fb uid,您需要一个 BigInteger。
EDIT:
Actually I just found your error, you put the exclude_ids in the request form and not the multi-friend-selector:
<fb:multi-friend-selector showborder="false" actiontext= "Invite your friends" rows="5" cols="5" bypass="skip" target="_top" exclude_ids="121212232,233423423" />
I believe you made the same error I did before, those ids (
12312345,2345235
) doesnt look like facebook uids, they are too low.I had the same problem when I introduced the uids as an integer in the database, the uids doesn't fit in an integer and they get corrupted.For storing a fb uid you need a BigInteger.