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
파일 보기 프로젝트 열기: horde/horde

공개 메소드들

메소드 설명
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