facebook_session.user.friends_with_this_app.map(&:id).join(“,”);我怎样才能在 Facebooker2 中做这样的事情
<%= fb_multi_friend_selector("Invite your friends to check out this site", :showborder => true,:exclude_ids => facebook_session.user.friends_with_this_app.map(&:id).join(","), :condensed => false) %>
正如您在上面看到的, :exclude_ids => facebook_session.user.friends_with_this_app.map(&:id).join(","),
此行可以删除曾经是您的好友并加入其中列出的应用程序的好友。最近,我升级到了Facebooker2。我怎样才能在 Facebooker2 中做同样的事情?
Facebookers 和 Mogli 中没有名为 Friends_with_this_app 的函数。
<%= fb_multi_friend_selector("Invite your friends to check out this site", :showborder => true,:exclude_ids => facebook_session.user.friends_with_this_app.map(&:id).join(","), :condensed => false) %>
as you see above , :exclude_ids => facebook_session.user.friends_with_this_app.map(&:id).join(","),
this line can remove the friends who had been a friends of you and joined in the app listed there. Recently, I upgraded to Facebooker2. how can I do the same thing in Facebooker2?
there is no function named friends_with_this_app in Facebookers and Mogli.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我一直无法找到解决此问题的一步解决方案。但是你可以这样做:
然后你的代码
I haven't been able to figure out a one step solution to this. However you could do:
then your code