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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:21:50+00:00 2026-06-16T13:21:50+00:00

I had an fql query in my code that up until last week (or

  • 0

I had an fql query in my code that up until last week (or thereabout) worked perfectly and then suddenly stopped working.

I’m now getting a bizarre #803 error along with the message “Some of the aliases you requested do not exist:” which is peculiar (and I believe to be a total red herring) since I have now tried removing ALL my previous aliases and replacing them with just “name”.

Totally at my rope’s end trying to figure out what Facebook changed over the last couple of weeks that would be causing this. If anyone has any insight I’d be really grateful to hear it.

I’m posting my code here, but am not expecting any commentary on the code itself seeing as how it worked perfectly for several months until some point within the last two weeks or so.

The specific intention of the code was to fetch an auth token for the user and then retrieve some more detailed information that isn’t available in the /me request.

//I call this first to get the token

               function checkStatus() {     
            try{

                FB.getLoginStatus( function( loginResponse ){
                    if( loginResponse.status == "connected" ){
                        authToken = loginResponse.authResponse.accessToken;//this comes back as expected
                        expiresIn = loginResponse.authResponse.expiresIn;//this comes back as expected
                        getUserInfo();
                    } else {
                        registerApp();//this gets called if the user hasn't approved the app yet... this continues to work as expected
                    }
                } );

            }
            catch(e){
                alert("ERROR" + e);
            }
        }



//so the above method calls this


                function getUserInfo(){
            FB.api( "/me", function( meResponse ){   

                meResponse.authToken = authToken;
                meResponse.expiresIn = expiresIn;           
                console.log("meResponse = " + JSON.stringify(meResponse));
//this contains all the correct expected data

                FB.api(escape("/fql&q=SELECT name FROM user WHERE uid = '"+ meResponse.id +"'"),//here I've eliminated ALL extra aliases (though none of them were a problem before
                    function( response ){
                        console.log("RESP = " + JSON.stringify(response)); //this comes back with the following error:
//{"error":{"message":"(#803) Some of the aliases you requested do not exist: fql&q=SELECT name FROM user WHERE uid = 'xxxxxxxxx'","type":"OAuthException","code":803}}

                    }
                 )              
            } );

        }
  • 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-16T13:21:51+00:00Added an answer on June 16, 2026 at 1:21 pm

    So… it would appear that FB just totally altered the syntax for how fql is to be called, and I am not seeing ANY reference to the old way that I have above (which TOTALLY worked).

    The new way is to pass in a JSON object that looks like this:

    {method:'fql.query',                            query: "SELECT uid,name,email,first_name,last_name,birthday_date,pic_big FROM user WHERE uid = '"+ meResponse.id +"'"}
    

    and the response NO LONGER comes back as an array called data, and is now a raw unnamed array at the top level of the returned object… so in my example above, I am now just looking at response[0] as opposed to response.data[0].

    I see no mention of any of these changes in any of their documentation… maybe I’m just losing my mind, but it looks like they just totally up and modified their API with no warning.

    Maybe I’m missing something (I usually am).

    Just in case someone else needs help with this… here’s an example of the newly working code…

    FB.api(
                        {method:'fql.query',   
                            query: "SELECT uid,name,email,first_name,last_name,birthday_date,pic_big FROM user WHERE uid = '"+ meResponse.id +"'"},
                    function( response ){
                        console.log("RESP = " + JSON.stringify(response));
                        //all the data for this specific user is now in response[0], obviously if your search criteria contains more users, they'll be in the subsequent indexed items under the response array.                                            
                    }
                 )  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Had a page that was working fine. Only change I made was to add
Had a nice PHP/HTML/JS prototype working on my personal Linode, then tried to throw
I had it working yesterday and then I did something and now I have
I had implemented facebook login in my project using javascript code. It was working
Had received a module from CCAVENUE and it was working fine with Magento 1.6.2...
Had a good search here but can't see anything that gets my mind in
Had a problem with the recursive conflictCheck() method. That seems fine now. I have
Had this working; at one stage. The problem is the following text is now
I had a debate about macros and their readability. I think that in some
I had a question in MySQL, did it correctly. But the book code differs

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.