title: How to deal with URLs with commas in Facebook Graph API
body: <p>I would like to use Graph API to get some information about URLs.</p>
  
  <p>It works like this:</p>
  
  <blockquote>
    <p><a href="http://graph.facebook.com/?ids=URL,URL2,URL3" rel="nofollow">http://graph.facebook.com/?ids=URL,URL2,URL3</a></p>
  </blockquote>
  
  <p>However, when an URL contains comma, things get complicated. For</p>
  
  <blockquote>
    <p><a href="http://www.example.com/name,something" rel="nofollow">http://www.example.com/name,something</a></p>
  </blockquote>
  
  <p>we get</p>
  
  <blockquote>
    <p><a href="http://graph.facebook.com/?ids=http%3A%2F%2Fwww.example.com%2Fname%2Csomething" rel="nofollow">http://graph.facebook.com/?ids=http%3A%2F%2Fwww.example.com%2Fname%2Csomething</a></p>
  </blockquote>
  
  <p>what gives us:</p>
  
  <pre><code>{
     "error": {
        "message": "(#803) Some of the aliases you requested do not exist: something",
        "type": "OAuthException",
        "code": 803
     }
  }
  </code></pre>
  
  <p>What can be done with URLs to avoid such errors?</p>