ruby - Rails & Mogli - get users friends' ids -
I am using Rail 3 & amp; To connect with Facebook, Mogul this code gives me a user object.
client = mogli :: client.new (session [: at]) user = mogli :: user.find ("me", client) I have seen from documentation that there are classes for all object types in Mogul (example: album, event, etc.) but I do not know how to recover connections. (Example: Friends)
Actually I have to meet a list of user's friends with their ID. Because user.friends has only an array of their names. Any thoughts?
make a mistake I'm stupid. @ user.friends is an array mobile :: user objects @ user.friends.inpect call them to to_str having had.
Comments
Post a Comment