Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8707863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:58:12+00:00 2026-06-13T03:58:12+00:00

I tried getting the latest photos fo my friends using a method described here:

  • 0

I tried getting the latest photos fo my friends using a method described here:
FQL – Can i get photos of my friends posted this week

At first it seemed to be working fine but then I noticed that some of the photos of my friends weren’t being fetched even though they had a higher timestamp (the photos were being sorted by created field from photo FQL table)…
After a bit of debugging I noticed that the problem is in

SELECT aid FROM album WHERE owner IN 
  (SELECT uid2 FROM friend WHERE uid1=me()

if I pass a short list of my friends’ IDs they are being sorted correctly, but when I pass a complete list not all friends are included in the query result…

Any ideas why this isn’t working? Are there any limits on how many values can be passed in a “SELECT XXX FROM YYY WHERE ZZZ IN (?)” query?

Thanks in advance for any advice

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T03:58:14+00:00Added an answer on June 13, 2026 at 3:58 am

    The limit seems to be about 5000 records returned in any part of an FQL query.

    Assuming you have fewer than 5000 friends, you could cut down on the number of albums returned by modifying your query to inspect the modified_major column to only return albums that have had a photo added in the period of interest. You could alternately look at the modified column to return any album modifications.

    Also, it looks like aid and pid are on the path to deprecation. New development should use object_id for maximum compatibility.

    So to get all albums that have had a photo updated since 2012-10-01, you could use this query:

    SELECT object_id FROM album WHERE owner IN 
      (SELECT uid2 FROM friend WHERE uid1=me()) AND modified_major > 1349049600
    

    In your outter query change aid to album_object_id and pid to object_id

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting this error while using twitter bootstrap. I didn't get this error
I keep getting a Compilation Error and can't find matching overloaded method. I've tried
I tried getting the type of UnityEngine.Vector3 using Type.GetType() but its returning NULL .
I've tried getting the launch link from the start menu and using Process.Start() But
Getting error when I tried like this: $ci =& get_instance(); $ci->db->select(CONCAT_WS(' ',users.name_first,users.name_last) AS user_name,CONCAT_WS('
I keep getting this error when I tried to execute this query, although I
I keep getting this error and I have tried putting quotes around the actual
I have been trying to get the latest version of phpmailer from here: http://sourceforge.net/projects/phpmailer/files/
I tried getting the latest versions and editing the links etc. But I'm kind
I tried the following query to get the latest comment on top. SELECT u.id,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.