Services_Facebook
[ class tree: Services_Facebook ] [ index: Services_Facebook ] [ all elements ]

Class: Services_Facebook_Users

Source Location: /Services_Facebook-0.2.14/Services/Facebook/Users.php

Class Overview

Services_Facebook_Common
   |
   --Services_Facebook_Users

Facebook Users Interface


Author(s):

Version:

  • Release: 0.2.14

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 36]
Facebook Users Interface


[ Top ]


Class Variables

$photoSizes = array('big', 'small', 'square')

[line 60]

photoSizes
  • Var: Supported photo sizes
  • See: self::getPhoto
  • Access: protected

Type:   array


[ Top ]

$userFields = array(
        'about_me', 'activities', 'affiliations', 'birthday', 'books',
        'current_location', 'education_history', 'first_name', 'has_added_app',
        'hometown_location', 'hs_info', 'interests', 'is_app_user', 
        'last_name', 'meeting_for', 'meeting_sex', 'movies', 'music', 'name',
        'notes_count', 'pic', 'pic_small', 'pic_square', 'political',
        'profile_update_time', 'quotes', 'relationship_status', 'religion',
        'sex', 'significant_other_id', 'status', 'timezone', 'tv',
        'wall_count', 'work_history'
    )

[line 43]

Default user fields
  • Var: List of allowed getInfo fields
  • Access: public

Type:   array


[ Top ]



Method Detail

getInfo   [line 139]

object SimpleXmlElement getInfo( mixed $uids, [array $fields = array()])

Get user info

Parameters:

mixed   $uids   —  A single uid or array of uids
array   $fields   —  List of fields to retrieve

[ Top ]

getLoggedInUser   [line 166]

string getLoggedInUser( )

Get the currently logged in uid

Returns the Facebook uid of the person currently "logged in" as specified by $sessionKey.


[ Top ]

getPhoto   [line 225]

mixed getPhoto( string $uid, [string $size = ''])

Get photo

Get a photo given an user id. Allow different sizes.

  • Return: Photo data
  • Access: public

Parameters:

string   $uid   —  Id of the user you want to get a photo of
string   $size   —  Size of the photo self::photoSizes

[ Top ]

hasAppPermission   [line 184]

boolean hasAppPermission( string $perm, [string $uid = null])

Has given extended permission

Parameters:

string   $perm   —  Permission to check
string   $uid   —  User's ID, optional if session key present

[ Top ]

isAppAdded   [line 67]

boolean isAppAdded( )

Has the current user added this application?
  • Access: public

[ Top ]

isAppUser   [line 86]

bool isAppUser( [float $uid = null])

Is app user

Uses the passed in user ID or session key to determine if the user is a user of the application.

  • Access: public

Parameters:

float   $uid   —  Facebook user ID

[ Top ]

setStatus   [line 114]

boolean setStatus( mixed $status)

Set a user's status message

Set $status to true to clear the status or a string to change the actual status message.


Parameters:

mixed   $status   —  Set to true to clear status

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:36:59 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.