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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:33:06+00:00 2026-06-04T21:33:06+00:00

I want to fetch the data from Facebook user table using wild cards. But,

  • 0

I want to fetch the data from Facebook user table using wild cards. But, I guess current FQL is not supporting the wildcards, or I’m missing something.

Also, it gives an error for LIKE as well.

currently, I’m executing it as follow

SELECT uid, username,first_name,last_name FROM user WHERE first_name LIKE ‘%ab%’ order by first_name LIMIT 0,20;

I tried *, ?, _ etc.

Still, i couldn’t get it yet.

Any suggestions?

  • 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-04T21:33:08+00:00Added an answer on June 4, 2026 at 9:33 pm

    There’s a way to do something similar, but even then you can’t ask such a question from the api.

    Here’s a “working” version of your query:

    SELECT uid, username, first_name, last_name
    FROM user
    WHERE strpos(lower(first_name), 'ab') >= 0
    ORDER BY first_name
    LIMIT 0,20
    

    The problem with this query is that it produces this error:

    Your statement is not indexable. The WHERE clause must contain an
    indexable column. Such columns are marked with * in the tables linked
    from http://developers.facebook.com/docs/reference/fql

    You basically don’t have a way to ask for all users, just based on specific user(s), for example this works:

    SELECT uid, username, first_name, last_name
    FROM user
    WHERE strpos(lower(first_name), 'ab') >= 0 AND uid IN ("user_id_1", "user_id_2", ...,"user_id_n")
    ORDER BY first_name
    LIMIT 0,20
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In asp.net(C#) i want to fetch data from a database using a stored procedure
I have got a PHP/HTML page where I want to fetch data from but
I want to fetch a data from two tables even if the second table
I want to fetch some data from the following database table 'article'. i want
I want to fetch data from database and display in spinner. but it is
I want to fetch data from json array using java gson library following is
I want write a simple query which will fetch data from a table (which
I'm a beginner, I want to fetch data from Zoho Crm and then insert
I fetch records from core data and fill NSMutableArray with them,now i want to
I have been using ASIHTTPRequest to fetch the data and i want to cancel

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.