koala - how to get users facebook friends

27 views
Skip to first unread message

tom

unread,
Jul 18, 2016, 11:52:25 AM7/18/16
to Ruby on Rails: Talk
hi, im using the koala gem, and i woudl like to display a list of friends, meaning the friend of the user being displayed.
->> /user/:id/friends

this give me only an empty array
  friends = @graph.get_connections("me", "friends", api_version: 'v2.0')


not sure...pls help

thx


Colin Law

unread,
Jul 18, 2016, 11:59:40 AM7/18/16
to Ruby on Rails: Talk
Where in the call is the current user referenced?

Colin

tom

unread,
Jul 18, 2016, 12:08:07 PM7/18/16
to Ruby on Rails: Talk

that's what I'm not clear about. what reference do I have to pass instead of 'me'?
I got the oath working and users can login via fb, but not sure what to pass here...what am I missing?
thx


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLscrWx0r78UcQriWTTt%2BQEbpG2ye-1hR6L3LzEvd_Zs6g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages