How to write fql query for images of specific album
I need to retrieve src_small images.
NSString *query=[NSString stringWithFormat:@"SELECT pid,src_small,src_big FROM photo WHERE aid IN ( SELECT aid FROM album WHERE owner=%@)",ownerId];
I wrote this query, and this works fine. But it gives me data of all the albums.
What i want is to retrieve images for specific album only, not for all the albums.
How should i reframe my query to solve this?
Thanks in advance开发者_C百科.
obviously:
NSString *query = [NSString stringWithFormat : @"SELECT pid, src_small, src_big FROM photo WHERE aid = '%@'", aId];
hope this helps
精彩评论