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 8381035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:36:31+00:00 2026-06-09T16:36:31+00:00

$fql = SELECT link_id, owner, created_time, title, summary, url, image_urls FROM link WHERE owner

  • 0
$fql = "SELECT link_id, owner, created_time, title, summary, url, image_urls FROM link WHERE owner IN (select uid2 from friend where uid1 = me() LIMIT 20) AND created_time >= $_7ago";

The above query works great. However, when I increase the LIMIT from 20 to, say 21 or anything higher, I get an error and the query returns Null. I am looking to query Links shared by ALL friends. Thanks.

  • 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-09T16:36:32+00:00Added an answer on June 9, 2026 at 4:36 pm

    That query takes forever to execute. Just testing it a few times in the Graph API explorer, even getting the links from 20 friends takes > 28 seconds. As I’m writing this, I’ve got a query running for 100 friends. We’ll see if it completes before I do.

    It looks like if you want to get all the links shared by all friends, you’ll need to break this query up into smaller chunks and repeat it multiple times.

    I might structure it like this to get your closest friend’s links first, and then dig deeper for people who have less in common with you:

    SELECT link_id, owner, created_time, title, summary, url, image_urls FROM link 
      WHERE owner IN (SELECT uid FROM user WHERE uid IN 
        (SELECT uid2 FROM friend WHERE uid1 = me()) 
        ORDER BY mutual_friend_count LIMIT $offset, 20)
      AND created_time >= $_7ago
    

    You’d increment $offset in multiples of 20.

    This is best done as an asynchronous query where you’ll get the initial results quickly and others will fill in as they become available. It’s going to take a LONG time to get all these results.

    (100 Friends query still hasn’t returned results after 5 mins.)

    BTW, don’t forget to mark your questions as resolved.

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

Sidebar

Related Questions

I have this fql query: SELECT link_id, owner, owner_comment, created_time, title, summary, url, image_urls
I have the following Fql query: https://graph.facebook.com/fql?q={query1:SELECT uid2 FROM friend WHERE uid1=me(),query2:SELECT uid ,
here is my query: FB.api( { method: 'fql.multiquery', queries: { 'friends':'SELECT uid1 FROM friend
I'm trying to access basic information from a FRIEND page via FQL: SELECT name,
$friends = $facebook->api(array('method'=>'fql.query', 'query'=>'SELECT src_big, pid, src FROM photo WHERE owner = $user_id '));
var response = _facebookAPI.Fql.Query(String.Format(SELECT uid FROM event_member WHERE eid={0}, myevent)); I would like to
I trying execute next FQL query SELECT uid FROM user WHERE name='Vovka' and getting
I am executing this fql query SELECT status_id,message FROM status WHERE uid IN (SELECT
This FQL multiquery, for example: https://graph.facebook.com/fql?q={posts:SELECT actor_id,message,permalink,created_time,comments.count FROM stream WHERE source_id=me(),actors:SELECT uid,name,pic_square,profile_url FROM user
I am executing this query in FQL [@SELECT likes,message,actor_id FROM stream WHERE source_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.