开发者

How do I make an HTTP request in Ruby on Rails to get data from Facebook?

开发者 https://www.devze.com 2023-02-21 05:26 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号