title: Publishing photo to Facebook via Graph API: OAuthException: (#100) param tags must be an array
body: <p>I'm attempting to upload a photo to Facebook via the Graph API on a test user account for my app. With just the <code>url, link, name</code> parameters present, the upload works fine returning a valid photo id.</p>
  
  <p><strong>However, if I use the additional <code>tags</code> parameter, I end up with the following error returned:</strong></p>
  
  <pre><code>{
    "error": {
      "message": "(#100) param tags must be an array.", 
      "type": "OAuthException", 
      "code": 100
    }
  }
  </code></pre>
  
  <p>I've tried to provide the value for <code>tags</code> in almost every possible way I can think of, as I know the Graph API isn't straightforward (even the parameter <code>url</code> which is used to upload a photo from a URL isn't listed under the <code>photo</code> Graph API method);</p>
  
  <p><strong>A single user id</strong></p>
  
  <p><code>tags=100003919104407</code> </p>
  
  <p><strong>Multiple CS'd user ids</strong></p>
  
  <p><code>tags=100003919104407,100003919104408,100003919104409</code> </p>
  
  <p><strong>Array with ids not as integers</strong></p>
  
  <p><code>tags=[100003919104407, 100003919104404,100003919104405]</code> </p>
  
  <p><strong>Array with ids as strings</strong></p>
  
  <p><code>tags=["100003919104407", "100003919104404","100003919104405"]</code></p>
  
  <p><strong>Array containing objects, as per the Facebook Graph API documentation</strong></p>
  
  <p><code>tags=[{"id":"100003919104407"},{"id":"100003919104404"},{"id":"100003919104405"}]</code> </p>
  
  <p>If someone could tell me the right format/another parameter through which to pass user ids in order to have them tagged in a photo, I'd be very grateful. </p>