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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:42:56+00:00 2026-06-10T14:42:56+00:00

I am using FQL to fetch data from Facebook graph API.When i give a

  • 0

I am using FQL to fetch data from Facebook graph API.When i give a get request via jquery to Facebook, I get the response data in the call back function but,when I tried to process it,i found that the response is treated as a string(I am not able to iterate through it considering it as dictionary) but firebug log shows the following json data.

console.log(response);

RESULT:

{
  "data": {
    "fql_search_result": [{
      "aid": "xxxxx",
    }, {
      "aid": "xxxxx",
    }, ]
  }
}

I got error saying response has no attribute data, when i did this

console.log(response.data)

Why is the data treated as string and not as dictionary?

  • 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-10T14:42:58+00:00Added an answer on June 10, 2026 at 2:42 pm

    Did you give the dataType as ‘json’ in the request that you made via jQuery?

    dataType:'json',
    

    Alternatively you can try using the jQuery short hand function for AJAX GET Requests which has dataType as ‘json’ by default.

    jQuery.getJSON("https://graph.facebook.com/fql?q=SELECT+name+FROM+user+WHERE+uid+%3D+me+%28%29&access_token=<access_token>", function(data){
        console.log(data);
        console.log(data.data[0].name);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using FQL to retrieve data from graph API and here is the
I try using FQL Query to fetch count of share from post on facebook
I'm using FQL to query posts from a facebook page and sometimes randomly get
How to use fql and graph api together in facebook batch request?I want to
I am using fql from facebook and querying user table to get profile_url string
Since notifications are not available in the Facebook Graph API, I am using FQL
I'm getting a status message using FQL and the Facebook Graph API. I'm not
Hi I am using following FQL to fetch friends list from facebook and their
I want to fetch the data from Facebook user table using wild cards. But,
can I retrieve it using fql or graph api

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.