Shamsiddin Saidov
Shamsiddin Saidov

Reputation: 2281

FQL get all photos from album

I'm using FBRequestConnection on iPhone for getting all photos from same album.
I want to get all photos from album which has 11 photos in it and aid="100001996111955_72360".
I wrote the below code, but it returned 4 photos, not 11.

SELECT pid, src_big FROM photo WHERE aid="100001996111955_72360"

Can anyone enlighten me why I couldn't get all the photos?

Upvotes: -1

Views: 2103

Answers (1)

cpilko
cpilko

Reputation: 11852

When I run your FQL query in the Graph API Explorer, I get 11 items returned. There must be another problem in your script if you are only seeing 4 items.

Another comment: pid and aid are on the path to deprecation. To future proof your script, you should be using object_id wherever possible.

SELECT object_id, src_big FROM photo WHERE album_object_id = 313997665343435

(SELECT object_id FROM album WHERE aid="100001996111955_72360" = 313997665343435)

Upvotes: 2

Related Questions