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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:34:03+00:00 2026-06-02T18:34:03+00:00

I am looking for a way to query facebook pages that for example, have

  • 0

I am looking for a way to query facebook pages that for example, have something to do with food.

Not to difficult 😉

$pages = $facebook->api('search?q=food&type=page');

But… I want to get the largest pages (most likes) of that category. Search get’s close, but I can’t influence the return order (I think).

I have been looking here: https://developers.facebook.com/docs/reference/fql/page/
to see if I can get it to work with a query, but it seems I can only query information about a specific page.

I have been looking for several solutions without succes. Is this even possible at all? Any help would be much 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-02T18:34:04+00:00Added an answer on June 2, 2026 at 6:34 pm

    How about this:

    Make that request to “search?q=food&type=page“, then take the results and iterate over them.

    For each result make the following FQL query:

    SELECT 
        name, username, fan_count 
    FROM 
        page 
    WHERE 
        page_id="ITERATION_PAGE_ID"
    

    For example, the first result I get has the id “25255939006”, the FQL will be:

    SELECT name, username, fan_count FROM page WHERE
    page_id=”25255939006″

    And the result is:

    {
      "data": [
        {
          "name": "Food", 
          "username": "", 
          "fan_count": 146291
        }
      ]
    }
    

    Hope this is what you were after.

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

Sidebar

Related Questions

I'm looking for an efficient way to query items, that have identical set of
I'm looking for a way to query a SQL database with Java and return
Is there any better way to make this query work? I'm looking for a
I'm looking for way to write Javascript programs / scripts on desktop, not inside
My problem is that I was looking for way to use both storyboard and
First, I'm not looking a way to parse an RSS-feed. I am creating an
I'm looking a way to make a query with 2 tables: posts: +----+-------------------- +
I am looking for a quick and dirty way to query the layouts files
Is there a way to query for all access_tokens or page_ids that an app
I am looking to provide a Web API similar to Facebook's FQL interface. https://developers.facebook.com/docs/reference/fql/

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.