PHP Class Horde_Service_Facebook_Users, horde

Copyright 2009-2016 Horde LLC (http://www.horde.org/)
Author: Michael J. Rubinsky ([email protected])
Inheritance: extends Horde_Service_Facebook_Base
Datei anzeigen Open project: horde/horde

Protected Properties

Property Type Description
$_permissions array Local cache of requested permissions
$_users array Local cache of requested user information

Public Methods

Method Description
getAppPermissions ( string $uid = null ) : array Return the list of the current application permissions for the specified user.
getInfo ( $uid = null, array $fields = [] ) : object Returns the requested info fields for the requested set of users.
getProfileLink ( string $uid ) : string Return a URL to the facebook page of the requested user.
getThumbnail ( string $uid ) : string Return a URL to the user's thumbnail image.

Method Details

getAppPermissions() public method

Return the list of the current application permissions for the specified user.
public getAppPermissions ( string $uid = null ) : array
$uid string The uid to request permissions for. If null, the currently authenticated user is used.
return array An array of permissions where the keys are permission names and the values are '1' for yes or '0' for no.

getInfo() public method

Returns the requested info fields for the requested set of users.
public getInfo ( $uid = null, array $fields = [] ) : object
$fields array An array of fields to return. If empty, all fields are returned.
return object The user information as a stdClass.

getThumbnail() public method

Return a URL to the user's thumbnail image.
public getThumbnail ( string $uid ) : string
$uid string The Facebook user id.
return string The URL to the user's Facebook thumbnail.

Property Details

$_permissions protected_oe property

Local cache of requested permissions
protected array $_permissions
return array

$_users protected_oe property

Local cache of requested user information
protected array $_users
return array