Solved

Facebook FQL query nothing displaying

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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Suggested Solutions

This article discusses how to implement server side field validation and display customized error messages to the client.
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
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:
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

752 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