I am using some Facebook IDs in my app, and I have an array of serveral ID's, the array can be 10 numbers but can also be 500 numbers..
Right now the numbers are displayed in a tableview, and I want all the results there too, so they need to be in an array.

```
let profileUrl = NSURL(string:"http://www.facebook.com/" + newArray[0])!
let task = NSURLSession.sharedSession().dataTaskWithURL(profileUrl) { 
    (data, response, error) -> Void in
    // Will happen when task completes
    if let urlContent = data {
        let webContent = NSString(data: urlContent, encoding: NSUTF8StringEncoding)
        dispatch_async(dispatch_get_main_queue(), 
            { () -> Void in
            let websiteArray = webContent!.componentsSeparatedByString("pageTitle\">")
            //print(websiteArray[1])
            let secondArray = websiteArray[1].componentsSeparatedByString("</title>")
            print(secondArray[0])
            })
    }
}

```

this code takes the first number of the array, goes to facebook.com/[the actual number], and then downloads the data and splits the data into pieces, so that the data that I want it in the secondArray[0]. I want to do this for every number of the array, take the result data and put it back into an array. I have no idea how to do this because you don't know how much numbers there are gonna be etc, does someone has a good solution for this?

Any help would be appreciated, really!

Thanks