JFacebookUser::getGroups
Method to get the groups that the user belongs to. Requires authentication and user_groups or friends_groups permission.
Signature
public function getGroups(mixed
$user,
[integer
$limit = 0,
[integer
$offset = 0]] )
Parameters
-
$user
- Either an integer containing the user ID or a string containing the username.
-
$limit
- The number of objects per page.
-
$offset
- The object's number on the page.
Returns
- mixed
- The decoded JSON response or false if the client is not authenticated.