Solved

Facebook FQL query nothing displaying

Posted on 2011-03-02
5
784 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

740 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