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.
For those who are using latest SDK 

self.arrayMedia = [[NSMutableArray alloc]init];

```
[[[FBSDKGraphRequest alloc] initWithGraphPath:@"/me/albums" parameters:@{@"fields": @"id"} tokenString:[[NSUserDefaults standardUserDefaults] objectForKey:@"FACEBOOK_ACCESSTOKEN"] version:nil HTTPMethod:@"GET"]

 startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) {
     NSLog(@"result albums:%@",result);
     NSLog(@"Error %@",error.description);

     for (NSDictionary *dict in result[@"data"]) {

         [[[FBSDKGraphRequest alloc] initWithGraphPath:[NSString stringWithFormat:@"/%@/photos", dict[@"id"]] parameters:@{@"fields": @"id,url,picture"} tokenString:[[NSUserDefaults standardUserDefaults] objectForKey:@"FACEBOOK_ACCESSTOKEN"] version:nil HTTPMethod:@"GET"]

          startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) {

              for (NSDictionary *dict in  result[@"data"])
              {
                  [self.aryMedia addObject:dict];
              }

          }];
     }
 }];

```