How do I make an HTTP request in ruby on rails to get data from facebook. I am unsure of where to start to get data from the f开发者_StackOverflowacebook API in json format.
I hope this question even makes sense.
If you are going to be dealing with FB in Rails you will want to take a look at mogli and facebooker2. If you can provide some more detail, people will be able to help you better but at least that's a good place to start.
If you really need JSON data, use rest-client.
https://github.com/archiloque/rest-client
I recommend use this instead of original rest-client gem, since original one doesn't force SSL certificate verification.
https://github.com/nov/restclient_with_cert
精彩评论