Created
October 24, 2011 11:23
-
-
Save bluefuton/1308809 to your computer and use it in GitHub Desktop.
FQL: get photos of me and a friend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT pid, src_big | |
FROM photo | |
WHERE pid IN( | |
SELECT pid | |
FROM photo_tag | |
WHERE subject = me() | |
) | |
AND pid IN( | |
SELECT pid | |
FROM photo_tag | |
WHERE subject = <friend_user_id> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment