You can directly access the Graph API. The answers will be in JSON, which can then be parsed as needed. For more information, see the Documentation for Facebook for more information on specific functions that you can call and select JSON responses.
I am not coding in Ruby, but this seems like a great start to understanding Ruby on Rails and JSON .
source share