Skip to content

Commit

Permalink
Add documentation for mutual friends feature
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane-monnot committed Aug 18, 2016
1 parent 8a5c094 commit c5aee9b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@ $user->getFriendsCount();
$user->getFriendsCount($group_name);
```

#### Get the number of mutual Friends with another user
```php
$user->getMutualFriendsCount($otherUser);
```

### To get a collection of friend models (ex. User) use the following methods:
#### Get Friends
```php
Expand All @@ -195,3 +200,7 @@ $user->getFriends($perPage = 20);
```php
$user->getFriendsOfFriends($perPage = 20);
```

#### Get mutual Friends with another user
```php
$user->getMutualFriends($otherUser, $perPage = 20);

0 comments on commit c5aee9b

Please sign in to comment.