\Horde_Service_Facebook_Friends

Friends methods for Horde_Service_Facebook

Copyright 2009-2017 Horde LLC (http://www.horde.org/)

Summary

Methods
Properties
Constants
__construct()
areFriends()
get()
getLists()
No public properties found
No constants found
No protected methods found
$_facebook
$_http
N/A
No private methods found
No private properties found
N/A

Properties

$_http

$_http : \Horde_Http_Client

Type

\Horde_Http_Client

Methods

__construct()

__construct(\Horde_Service_Facebook  $facebook) 

Constructor

Parameters

\Horde_Service_Facebook $facebook

areFriends()

areFriends(string  $uid, string  $friend_id) : boolean

Returns whether or not pairs of users are friends.

Note that the Facebook friend relationship is symmetric.

Parameters

string $uid

user id to check

string $friend_id

Id of user to check for friend status.

Returns

boolean

get()

get(string  $uid, string  $list = null) : array

Returns the friends of the current session user.

Parameters

string $uid

The uid to obtain friends for.

string $list

Return only friends in the specified list.

Returns

array —

An array of friend objects containing 'name' and 'id' properties.

getLists()

getLists(string  $uid) : array

Returns the set of friend lists for the current session user.

Parameters

string $uid

The uid to obtain friend lists for.

Returns

array —

An array of friend list objects