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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T03:38:12+00:00 2026-05-29T03:38:12+00:00

fql?q=SELECT friend_count FROM user WHERE uid=’id’ I was using the above fql query for

  • 0

fql?q=SELECT friend_count FROM user WHERE uid=’id’

I was using the above fql query for getting the count of friends. It has been working for me for quite some time. [Javascript SDK ]

But now it gives the following error message,

{“error”:{“message”:”(#604) 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 “,
“type”:”OAuthException”}}

I tried copying this query and pasting it in graph api explorer tool and it works perfectly fine.

I have checked the FQL reference for user and uid is still an indexable column.

I have checked the blogs for breaking changes, but there are none mentioned regarding fql.
Any idea why this is not working anymore ? And any other way to get this working ?

  • 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-05-29T03:38:13+00:00Added an answer on May 29, 2026 at 3:38 am

    You might have a bad access token, or your query might have quotes around the numeric user ID value.

    https://graph.facebook.com/fql?q=SELECT friend_count FROM user WHERE uid=me()

    {
    “data”: [
    {
    “friend_count”: NNNN
    }
    ]
    }

    https://graph.facebook.com/fql?q=SELECT friend_count FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=me())

    {
    “data”: [
    {
    “friend_count”: 421
    },
    {
    “friend_count”: 219
    },
    {
    “friend_count”: 59
    },
    {
    “friend_count”: 239
    },
    {
    “friend_count”: 235
    },
    {
    “friend_count”: 986
    },

    EDIT

    Based upon the code links you shared below, here’s a way to get the fql url encoded properly.

    var q = 'fql?q=' + escape('SELECT friend_count FROM user WHERE uid=100001516911824');
    FB.api(q, Log.info.bind('fql callback'));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I trying execute next FQL query SELECT uid FROM user WHERE name='Vovka' and getting
I'm using the following code to retrieve a user's friends: $fql_query_url = 'https://graph.facebook.com/fql?q=SELECT+uid,+name,+pic_square+FROM+user+WHERE+uid+IN+(SELECT+uid2+FROM+friend+WHERE+uid1+=+me())+order+by+name&access_token=' .
I have this FQL query select uid, name, website from user where website !=
I am executing this fql query SELECT status_id,message FROM status WHERE uid IN (SELECT
here is my query: FB.api( { method: 'fql.multiquery', queries: { 'friends':'SELECT uid1 FROM friend
I'm trying to query for a user's facebook friends events using FQL. I've used
Can someone tell me why this works: SELECT name FROM user WHERE uid IN
I am executing this query in FQL [@SELECT likes,message,actor_id FROM stream WHERE source_id =
I'm using the following Facebook FQL query to fetch the relationships between my friends:
Hi I am using following FQL to fetch friends list from facebook and their

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.