Solved

Facebook FQL query nothing displaying

Posted on 2011-03-02
5
765 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
Comment Utility
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
Comment Utility
Does the userId you are passing exist on facebooks database?
0
 

Author Comment

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

Accepted Solution

by:
Bardobrave earned 500 total points
Comment Utility
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
Comment Utility
True...found it...thanks :)
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Adding Extra Information box 4 23
update field on focusout 15 19
Phone Dialer 5 35
PHP string issue 5 16
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
The viewer will learn how to dynamically set the form action using jQuery.
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now