Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用Koala gem 与 Facebook API 进行交互,我成功获取了我的页面,但我不知道如何获取我参与的群组列表。
如何获得这份清单?
谢谢
从Facebookuser_groups请求 oauth 令牌时应该有。然后您就可以读取用户组:
user_groups
@api = Koala::Facebook::API.new(oauth) groups = @api.get_connections 'me', :groups puts groups.size
结果:
134