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.
Facebook API とのやり取りにKoala gem を使用しています。ページは正常にフェッチされましたが、参加しているグループのリストを取得する方法がわかりません。
このリストを取得するには?
ありがとう
Facebookuser_groupsから oauth トークンをリクエストするときに必要です。次に、ユーザーのグループを読み取ることができます。
user_groups
@api = Koala::Facebook::API.new(oauth) groups = @api.get_connections 'me', :groups puts groups.size
そして結果:
134