public T groups_get ( Integer userId , Collection < Long > groupIds ) throws FacebookException , IOException { boolean hasGroups = ( null != groupIds && ! groupIds . isEmpty ( ) ) ; if ( null != userId ) return hasGroups ? this . callMethod ( FacebookMethod . GROUPS_GET , new Pair < String , CharSequence > ( "uid" , userId . toString ( ) ) , new Pair < String , CharSequence > ( "gids" , delimit ( groupIds ) ) ) : this . callMethod ( FacebookMethod . GROUPS_GET , new Pair < String , CharSequence > ( "uid" , userId . toString ( ) ) ) ; else return hasGroups ? this . callMethod ( FacebookMethod . GROUPS_GET , new Pair < String , CharSequence > ( "gids" , delimit ( groupIds ) ) ) : this . callMethod ( FacebookMethod . GROUPS_GET ) ; }
Retrieves the groups associated with a user