PHP Class Horde_Service_Facebook_Friends, horde

Copyright 2009-2016 Horde LLC (http://www.horde.org/)
Author: Michael J. Rubinsky ([email protected])
Inheritance: extends Horde_Service_Facebook_Base
Afficher le fichier Open project: horde/horde

Méthodes publiques

Méthode Description
areFriends ( string $uid, string $friend_id ) : boolean Returns whether or not pairs of users are friends.
get ( string $uid, string $list = null ) : array Returns the friends of the current session user.
getLists ( string $uid ) : array Returns the set of friend lists for the current session user.

Method Details

areFriends() public méthode

Note that the Facebook friend relationship is symmetric.
public areFriends ( string $uid, string $friend_id ) : boolean
$uid string user id to check
$friend_id string Id of user to check for friend status.
Résultat boolean

get() public méthode

Returns the friends of the current session user.
public get ( string $uid, string $list = null ) : array
$uid string The uid to obtain friends for.
$list string Return only friends in the specified list.
Résultat array An array of friend objects containing 'name' and 'id' properties.

getLists() public méthode

Returns the set of friend lists for the current session user.
public getLists ( string $uid ) : array
$uid string The uid to obtain friend lists for.
Résultat array An array of friend list objects