<%= 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的功能。
答案 0 :(得分:0)
我无法找到一个解决方案。但是你可以这样做:
<% every_friend = current_facebook_user.friends.map(&:id) %>
# replace user with your class and fb_id with your user's facebook id field name
<% app_friends = User.where( :fb_id => every_friend ).map(&:id) %>
然后你的代码
<%= fb_multi_friend_selector("Invite your friends to check out this site", :showborder => true,:exclude_ids => app_friends, :condensed => false) %>