\Horde_Service_Facebook_Users

Users methods for Horde_Service_Facebook

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

Summary

Methods
Properties
Constants
__construct()
getProfileLink()
getThumbnail()
getInfo()
getAppPermissions()
No public properties found
No constants found
No protected methods found
$_facebook
$_http
$_permissions
$_users
N/A
No private methods found
No private properties found
N/A

Properties

$_http

$_http : \Horde_Http_Client

Type

\Horde_Http_Client

$_permissions

$_permissions : array

Local cache of requested permissions

Type

array

$_users

$_users : array

Local cache of requested user information

Type

array

Methods

__construct()

__construct(\Horde_Service_Facebook  $facebook) 

Constructor

Parameters

\Horde_Service_Facebook $facebook

getProfileLink()

getProfileLink(string  $uid) : string

Return a URL to the facebook page of the requested user.

Parameters

string $uid

The Facebook user id.

Returns

string —

The URL to the user's Facebook page.

getThumbnail()

getThumbnail(string  $uid) : string

Return a URL to the user's thumbnail image.

Parameters

string $uid

The Facebook user id.

Returns

string —

The URL to the user's Facebook thumbnail.

getInfo()

getInfo(  $uid = null, array  $fields = array()) : object

Returns the requested info fields for the requested set of users.

Parameters

$uid
array $fields

An array of fields to return. If empty, all fields are returned.

Returns

object —

The user information as a stdClass.

getAppPermissions()

getAppPermissions(string  $uid = null) : array

Return the list of the current application permissions for the specified user.

Parameters

string $uid

The uid to request permissions for. If null, the currently authenticated user is used.

Returns

array —

An array of permissions where the keys are permission names and the values are '1' for yes or '0' for no.