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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:00:01+00:00 2026-05-23T11:00:01+00:00

It may sound a bit funny but i don’t know how to fetch the

  • 0

It may sound a bit funny but i don’t know how to fetch the data taken from a facebook FQL query using javascript. I was looking all over the net and there is only tutorials on how to run the query but now how to fetch the data.

so here is the code i have:

         if (response.session) {
         FB.api({
         method: "fql.query",
         query: "SELECT name,email FROM user WHERE uid = " + response.session.uid
         });
                                            customar_formcode="'.$formcode.'";
                                            customar_formcode=customar_formcode.replace("{email}", USER EMAIL FROM THE FQL);
                                            customar_formcode=customar_formcode.replace("{name}", USER NAME FROM THE FQL);
                                            document.getElementById('form').submit();

So how to place user’s name and email where “USER EMAIL FROM THE FQL” and “USER NAME FROM THE FQL”.

Thanks.

  • 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-23T11:00:01+00:00Added an answer on May 23, 2026 at 11:00 am

    You have to define callback function:

    FB.api({
             method: "fql.query",
             query: "SELECT name,email FROM user WHERE uid = " + response.session.uid
             },
    function(response) {
     //Here you have acces to response from FB.
     //Use console.log(response) (in firebug in FF) to watch what is in it:)
    }
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this may sound silly little bit, but there is no other way
I know that the title may sound absurd, but I don't know ho to
It may sound a bit weird, but in Bukkit (Minecraft Server) there's a permissions
The question may sound a bit stupid but I think it's interesting. Is it
This may sound like a bit of a rhetorical question, but I ask it
The title may sound a bit odd but I wanted to keep the title
The question may sound a bit naive or stupid, but i was wondering...will POST
Ok this question may sound a bit convoluted, or at least esoteric, but I'll
Okay this one may be a bit out from left field, but I'm going
I may sound a little childish but i am bit confused over a very

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.