views:

24

answers:

1

i have this fql statement

$fql_query  =   array(
 'method' => 'fql.query',
 'query' => 'SELECT aid, owner, name from album WHERE owner = ' . $uid
);
$albums = $facebook->api($fql_query);

the print_r dump of the return contains aid= matching the id of the owner rather than the id of the actual album. but the aid is return not only with the user id but with extra info tagged on to the end like "43367" for one album and another album has "-3" tagged on to it

2 questions then

  1. why is the owner id being returned instead of the correct album id
  2. and whats being tagged on to the end of it?
+1  A: 

If you look at album table docs it says that returned aid is unique for every user and is a string. So the value you receive is "correct" in a sense that you can use it for this particular user wherever you need album id.

Maybe you are interested in object_id field instead?

serg
what i am doing is selecting all the albums of the user then selecting all the photos associated with that album..
Chris Mccabe
@Chris So did you run into problems? Just use returned `aid` for retrieving photos from a `photo` table
serg

related questions