i’m playing with these code and it fails:
$fql = "SELECT name FROM group WHERE gid IN (SELECT name FROM group WHERE version=1) AND creator=me()";
$ret_obj = $facebook->api(array(
'method' => 'fql.query',
'query' => $fql,
));
echo count($ret_obj["name"]);
does anyone knows how to count() the no. of groups a person has created. Thanks
i’m using PHP-SDK.
Seems like group table has only 1 field gid as indexable which makes it impossible to filter user groups in FQL. Possible bug.
What you can do is make a graph API call to:
and then filter results by owner.id and count them.
hope this helps