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
Afficher le fichier Open project: horde/horde

Protected Properties

Свойство Type Description
$_permissions array Local cache of requested permissions
$_users array Local cache of requested user information

Méthodes publiques

Méthode 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 méthode

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.
Résultat array An array of permissions where the keys are permission names and the values are '1' for yes or '0' for no.

getInfo() public méthode

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.
Résultat object The user information as a stdClass.

getThumbnail() public méthode

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

Property Details

$_permissions protected_oe property

Local cache of requested permissions
protected array $_permissions
Résultat array

$_users protected_oe property

Local cache of requested user information
protected array $_users
Résultat array