Question: I'm trying to find the value of an object using \_.find in sails and somehow the returned result is undefined. I've checked with their [documentation](http://lodash.com/docs) and it seems I am doing everything right. But it is still returning undefined. I badly need your help. Thank you.

```
var obj = [
            {
              profile: {
                  profileId: 12,
                  firstName: 'John',
                  lastName: 'Doe',
                  email: 'johndoe@mail.com',
                  }
            },
            {
              profile: {
                  profile: 13,
                  firstName: 'Jane',
                  lastName: 'Doe',
                  email: 'janedoe@mail.com',
                  }
             }
           ];
var fnd = _.find(obj, {email: 'janedoe@mail.com'})
console.log(fnd); //result is undefined

```

Answer: 
I think you need this, [http://graph.facebook.com/v2.0/me?fields=albums.fields(photos.fields(id,source,name,picture))](http://graph.facebook.com/v2.0/me?fields=albums.fields%28photos.fields%28id,source,name,picture%29%29) 

From this link you can get `id`, source and picture of an individual photo.
You first get url from it then load url into `UIImageView`.

```
 AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
    [manager GET:[NSString stringWithFormat:@"http://graph.facebook.com/%@/?fields=picture",fbId] parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject) {
        NLog(@"JSON %@",responseObject);
        NSDictionary *pic = [responseObject objectForKey:@"picture"];
        NSDictionary *data = [pic objectForKey:@"data"];
        NSString *url = [data objectForKey:@"url"];

        [imageView setImageWithURL:[NSURL URLWithString:url]];

    } failure:^(AFHTTPRequestOperation *operation, NSError *error) {    
        NLog(@"Error: %@", error);
    }];

```