所以,我正在尝试使用 Koala 获取用户朋友的姓名:
@graph = Koala::Facebook::API.new(self.authentication_token)
@graph.get_connections("me", "friends").each do |friend|
puts friend['name']
end
但是,这会输出整个哈希值,ala:
{"name"=>"Tad Luedtke", "id"=>"17212478"}, {"name"=>"Harrison Hoffman", "id"=>"17212694"}, {"name"=>"Greg Nelson", "id"=>"17212720"}
我究竟做错了什么?