Ruby on rails FacebookKoala(rails):使用单个批处理请求获取组及其成员
我是facebook graph API的新手,我找不到实现这一点的方法。 “我的所有组”的用户少于15个(不需要拆分请求) 我目前正在使用一个循环,它为每个请求调用API,速度非常慢:Ruby on rails FacebookKoala(rails):使用单个批处理请求获取组及其成员,ruby-on-rails,facebook,ruby-on-rails-3.1,koala,Ruby On Rails,Facebook,Ruby On Rails 3.1,Koala,我是facebook graph API的新手,我找不到实现这一点的方法。 “我的所有组”的用户少于15个(不需要拆分请求) 我目前正在使用一个循环,它为每个请求调用API,速度非常慢: fb_groups = facebook.get_connections("me","groups?parent=xxxxxxxxxxx") ###### groups parsing and selection id_members.each do |id| User.fb_find(id) # get
fb_groups = facebook.get_connections("me","groups?parent=xxxxxxxxxxx")
###### groups parsing and selection
id_members.each do |id|
User.fb_find(id) # gets the user information using get_object
end
提前感谢,