Wednesday, December 22, 2010

URI::InvalidURIError: bad URI(is not URI?):

URI::InvalidURIError: bad URI(is not URI?): https://graph.facebook.com/me/friends?access_token="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
This URL contains special characters, which Ruby can’t handle:
Your browser can probably open the URL. To fix this error encode the URL before handing it to the parse method:
URI.parse(URI.encode("https://graph.facebook.com/me/friends?access_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"))

No comments:

Post a Comment