how to get the JSON object through URL in my ruby on rails code:
url = "https://graph.facebook.com/me/friends?access_token=XXX"
I am not able to get good tutorial for JSON + Ruby on rails.
Can someone help me out thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is the simplest way, though it may not be the fastest.
Edit: If the URI contains special characters in its parameter string, it has to be escaped/encoded with
URI.escapefirst.