Solved

Facebook FQL query nothing displaying

Posted on 2011-03-02
5
790 Views
Last Modified: 2012-05-11
Hi all,

I am trying to get something (Anything!) out of a FQL (Facebook Query Language), so it's just trying out samples and I get no display at all.

Trying this for example:

$query = "SELECT name FROM user WHERE uid = 111111111";
$result = $fb->fql($query);

var_dump($result);

Shouldn't the above at least display some output?

Can anyone help?

Thanks



0
Comment
Question by:error77
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Author Comment

by:error77
ID: 35017653
Update:

This is returning something now ... well...it's displaying something which is NULL

$result_set = $facebook->api_client->fql_query("select name from user where uid=$userId");

It should really be displaying a name though :o/
0
 
LVL 19

Expert Comment

by:Bardobrave
ID: 35018359
Does the userId you are passing exist on facebooks database?
0
 

Author Comment

by:error77
ID: 35026323
Yes, it does exist .. sorry for the delay.
0
 
LVL 19

Accepted Solution

by:
Bardobrave earned 500 total points
ID: 35026407
Apparetly there is nothing bad in the query... maybe there is an error on your displaying?

Can you post here the complete code you're using at the page?
0
 

Author Closing Comment

by:error77
ID: 35035007
True...found it...thanks :)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question