Class Facebooker::User
In: lib/facebooker/models/user.rb
Parent: Object

Holds attributes and behavior for a Facebook User

Methods

Included Modules

Model

Classes and Modules

Class Facebooker::User::Status

Constants

FIELDS = [:status, :political, :pic_small, :name, :quotes, :is_app_user, :tv, :profile_update_time, :meeting_sex, :hs_info, :timezone, :relationship_status, :hometown_location, :about_me, :wall_count, :significant_other_id, :pic_big, :music, :uid, :work_history, :sex, :religion, :notes_count, :activities, :pic_square, :movies, :has_added_app, :education_history, :birthday, :first_name, :meeting_for, :last_name, :interests, :current_location, :pic, :books, :affiliations]

Attributes

affiliations  [R] 
id  [RW] 
session  [RW] 

Public Class methods

Can pass in these two forms: id, session, (optional) attribute_hash attribute_hash

Public Instance methods

Retrieve friends with user info populated Subsequent calls will be retrieved from memory. Optional: list of fields to retrieve as symbols

Set the list of friends, given an array of User objects. If the list has been retrieved previously, will not set

Convenience method to get cookies for the current user

Set the mobile profile FBML

Retrieve profile data for logged in user Optional: list of fields to retrieve as symbols

Set the profile FBML for this user

This does not set profile actions, that should be done with profile_action=

Convenience method to send email to the current user

Convenience method to set cookie for the current user

Returns the user‘s id as an integer

[Validate]