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
ファイルを表示 Open project: horde/horde

Public Methods

Method 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 method

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.
return boolean

get() public method

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.
return array An array of friend objects containing 'name' and 'id' properties.

getLists() public method

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.
return array An array of friend list objects