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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:14:50+00:00 2026-06-09T23:14:50+00:00

I am trying to build an FQL query that returns post_id’s from a specific

  • 0

I am trying to build an FQL query that returns post_id’s from a specific user to a Facebook group’s stream. I can query all posts and iterate through them and pull out what I need, but for a group with a lot of posts, it’s not feasible.

The FQL docs lead me to believe I need to use a filter_key in the WHERE clause because actor_id is not indexable. I can’t figure out how to use filter_key to get the results I am looking for.

SELECT post_id FROM stream WHERE target_id='a group_id' AND actor_id='a fb_id'

Any help is appreciated!

  • 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-09T23:14:52+00:00Added an answer on June 9, 2026 at 11:14 pm

    Here is the query you need:

    SELECT post_id FROM stream WHERE source_id=GROUP_ID and actor_id=USER_ID
    

    For this, since you’re looking for posts in a group, the GROUP_ID is your source_id. That is an indexable field. Once you have one indexable field in your WHERE clause, you can add additonal fields to it without a problem.

    Also, since GROUP_ID and USER_ID are integers, they don’t need to be quoted in FQL.

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

Sidebar

Related Questions

Im trying to build a query that will fetch all changed rows from a
I'm trying build a method which returns the shortest path from one node to
I have a std::vector< tr1::shared_ptr<mapObject> > that I'm trying build from data contained in
Im trying to build a addin that can take some a selection of cells
Trying to build a linq query based on parameters a user selects (reporting) but
Trying to build a function that can insert into a SQL database regardless of
Trying to build a user interface using PyQt4. Got a dialog window that pops
Im trying to build a page that will allow a user to select a
I am trying build a page, where a user can login using his google
trying to build a query from a few tables here, and getting stumped on

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.