i am developing a facebook application and i have this code here which queries the user id and other information:

Code:
 $users = $facebook->api(array('method' => 'fql.query',
            'query' => "SELECT uid, last_name, pic_big FROM user WHERE uid IN(
    	SELECT uid FROM page_fan WHERE page_id='411133928921438' AND uid IN (
    		SELECT uid2 FROM friend WHERE uid1 = me()
    	))"));
I need to store the user id in an array so i can send invitation only to the users in the array generated.

Code:
  function newInvite(){
    	var user_ids = ["1368246891", "1206927311", "1149862205"];
    		     FB.ui({ method: 'apprequests',
              message: 'There goes the message for Penelope App users to invite their friends',
    		        to: user_ids,
    		   });
        }

THe user_ids must be the array which holds the user id genrated from the fql query... Help me with this...