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

Class: Services_Facebook_Users

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

Class Overview

Services_Facebook_Common
   |
   --Services_Facebook_Users

Facebook Users Interface


Author(s):

Version:

  • Release: 0.1.2

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 35]
Facebook Users Interface


[ Top ]


Class Variables

$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 42]

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

Type:   array


[ Top ]



Method Detail

getInfo   [line 104]

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 131]

int getLoggedInUser( )

Get the currently logged in uid

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


[ Top ]

hasAppPermission   [line 148]

boolean hasAppPermission( string $perm)

Has given extended permission

Parameters:

string   $perm   —  Either status_update or photo_upload

[ Top ]

isAppAdded   [line 58]

boolean isAppAdded( )

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

[ Top ]

setStatus   [line 79]

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:24:49 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.