title: Problem with tagging multiple friends on photo using Facebook graph
body: <p>I try to tag multiple friends on the phot using the Graph API AS3 for my Flash application. If I'm using a value statically the result is success and works like a charm But when I try to feed the <code>params.tags</code> with a dynamic value I get from the array (populated from checkbox) it fails.</p>
  
  <p>Here's the dynamic and failed ones:</p>
  
  <pre><code>var arrUserID:Array = new Array("1447615481","1052646429");
  
  var len:Number = arrUserID.length;
  var someStr:String = "";
  for (var i:Number=0;i&lt;len;i++) {
      someStr += arrUserID[i]+","+Math.round(Math.random()*imgHolder.width)+","+Math.round(Math.random()*imgHolder.height);
      if(i != len-1){
          someStr += "||";
      }
  }
  
  var arr:Array = [];
  arr = someStr.split("||");
  
  var outputArr:Array = [];
  
  var len2:Number = arr.length;
  
  var temp:Array = [];
  
  for (var j:Number=0;j&lt;len2;j++) {
      temp = arr[j].toString().split(",");
      outputArr.push({'tag_uid':temp[0], 'x':temp[1], 'y':temp[2]});
  }
  
  var params:Object = new Object();
  params.image = bitmap;
  params.message = "YEZAAA";
  params.fileName = "file-name";
  **params.tags = JSON.encode(outputArr);** --&gt; dynamic value from array
  
  Facebook.api('me/photos', onSaveToPhotoAlbumComplete, params);
  </code></pre>
  
  <p>and here are the success version and the statical ones:</p>
  
  <pre><code>var params:Object = new Object();
  params.image = bitmap;
  params.message = "YEZAAA";
  params.fileName = "file-name";
  params.tags = '[{tag_uid:"12345678","x":"0","y":"0"},{tag_uid:"001 111","x":"0","y":"0"}]';
  
  Facebook.api('me/photos', onSaveToPhotoAlbumComplete, params);
  </code></pre>
  
  <p>So it just keep me wondering, what is my wrong actually?</p>
  
  <p>There is really a need here since I've been pulling my hair after a week try to figure out, but to no avail.</p>