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

  • Home
  • SEARCH
  • 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 8794489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:15:30+00:00 2026-06-13T23:15:30+00:00

Simply put. I need help building an FQL multi query request that will do

  • 0

Simply put. I need help building an FQL multi query request that will do the following:

  1. Grab the UIDs in from the logged in user’s friends list then,
  2. Use those IDs to grab all comments and messages (from stream) from the last two weeks
  3. Finally, join those results with there usernames

Heres the queries I have so far:

[1] GRAB_UIDs:

SELECT uid2 FROM friend WHERE uid1 = me()

[2] GRAB_STREAM (missing the 2 week part and possibly wrong altogether):

SELECT type, created_time, post_id, comments, actor_id, target_id, message 
FROM stream 
WHERE filter_key IN 
       (SELECT filter_key FROM stream_filter WHERE uid = me()) 
AND actor_id IN 
       (SELECT uid2 FROM friend WHERE uid1 = me())
)';

[3] GRAB_USRNAMES:

SELECT uid, name, username, pic_square, current_location, profile_url 
FROM user WHERE uid IN 
       (SELECT uid2 FROM friend WHERE uid1 = me())

I could really use a master at making these kind of requests and I greatly appreciate the help.

  • 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-13T23:15:31+00:00Added an answer on June 13, 2026 at 11:15 pm
    {
        "query1":"SELECT uid2 FROM friend WHERE uid1 = me()",
        "query2":"SELECT type, created_time, post_id, comments, actor_id, target_id, message FROM stream WHERE filter_key IN (SELECT filter_key FROM stream_filter WHERE uid = me()) AND actor_id IN (SELECT uid2 FROM #query1)",
        "query3":"SELECT uid, name, username, pic_square, current_location, profile_url FROM user WHERE uid IN (SELECT uid2 FROM #query1)"
    }
    

    You can also see the results from the Graph API Explorer at:

    https://developers.facebook.com/tools/explorer?fql={%22query1%22%3A%22SELECT%20uid2%20FROM%20friend%20WHERE%20uid1%20%3D%20me%28%29%22%2C%22query2%22%3A%22SELECT%20type%2C%20created_time%2C%20post_id%2C%20comments%2C%20actor_id%2C%20target_id%2C%20message%20FROM%20stream%20WHERE%20filter_key%20IN%20%28SELECT%20filter_key%20FROM%20stream_filter%20WHERE%20uid%20%3D%20me%28%29%29%20AND%20actor_id%20IN%20%28SELECT%20uid2%20FROM%20%23query1%29%22%2C%22query3%22%3A%22SELECT%20uid%2C%20name%2C%20username%2C%20pic_square%2C%20current_location%2C%20profile_url%20FROM%20user%20WHERE%20uid%20IN%20%28SELECT%20uid2%20FROM%20%23query1%29%22}

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

Sidebar

Related Questions

I am building a desktop app that will put a simple graphical HUD on
I really need help with my ASP.NET MVC 2 site... Simply put, I have
I'm a newbie developer and I need your help with something that is probably
I need some quick help. My footer simply won't go down at the end
I'm using JSF 2.0 framework and I need help. To put it as simple
I got one big question. I got a linq query to put it simply
I am currently building a website that uses data from a JSON based REST
I need help in designing my PHP classes where I need to extend from
Hell everyone. I need some help with a ruby script that I am writing
A simple question. I have a figure. I need to hold it, and put

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.