PHP Класс Horde_Service_Facebook_Friends, horde

Copyright 2009-2016 Horde LLC (http://www.horde.org/)
Автор: Michael J. Rubinsky ([email protected])
Наследование: extends Horde_Service_Facebook_Base
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

areFriends() публичный Метод

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.
Результат boolean

get() публичный Метод

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.
Результат array An array of friend objects containing 'name' and 'id' properties.

getLists() публичный Метод

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.
Результат array An array of friend list objects