Method: Facebooker::Session#events
- Defined in:
- lib/facebooker/session.rb
#events(options = {}) ⇒ Object
This one has so many parameters, a Hash seemed cleaner than a long param list. Options can be: :uid => Filter by events associated with a user with this uid :eids => Filter by this list of event ids. This is a comma-separated list of eids. :start_time => Filter with this UTC as lower bound. A missing or zero parameter indicates no lower bound. (Time or Integer) :end_time => Filter with this UTC as upper bound. A missing or zero parameter indicates no upper bound. (Time or Integer) :rsvp_status => Filter by this RSVP status.
227 228 229 230 231 232 233 |
# File 'lib/facebooker/session.rb', line 227 def events( = {}) @events ||= post('facebook.events.get', ) do |response| response.map do |hash| Event.from_hash(hash) end end end |