Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Facebook FQL query nothing displaying

Posted on 2011-03-02
5
Medium Priority
?
792 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
  • 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 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
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 get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Suggested Courses

916 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