过滤在线 FBML 好友
好的,我有这个用户朋友数组,我只是想知道如何过滤掉离线的朋友,以便数组中只有在线的朋友:D
谢谢
Ok, I have this array of a users friends, and I'm just wondering how I can filter out the ones that are offline so that I only have the online ones in the array :D
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不需要这样做,您只需考虑当前登录的用户,无论是您还是其他任何人,并且在幕后它都会登录。您应该简单地检查用户是否登录(任何用户,包括朋友):
仅当用户登录时,条件中的代码才会运行。
You don't need to do that, you just have to account for current logged in user whether it is you or anyone else and behind the scenes it will be however is logged in. You should simply make a check if a user is logged in (any user including friend):
The code in the condition will run only if a user is logged in.