tags:

views:

39

answers:

1

I'm just getting started with developing with using facebook api with php. But I can't seem to figure out why I get only an empty array when I invoke the following query:

$fql = "SELECT message,time FROM status WHERE uid ='".$uid."'";

$response = $facebook->api(array('method' => 'fql.query','query' =>$fql));

print_r($response);

When I use a different query like the following I'm getting result back:

$fql = "SELECT uid2 FROM friend WHERE uid1='".$uid."'";
+2  A: 

There may be an issue with permissions. You may need to grant user_status permission.

See here - http://developers.facebook.com/docs/authentication/permissions

Taras B
Hey I think that's most likely the issue. I'll try it out. Thanks Taras!
ok, let people know if that worked ;)
Taras B