Method: Facebooker::User#rsvp_event
- Defined in:
- lib/facebooker/models/user.rb
#rsvp_event(eid, rsvp_status, options = {}) ⇒ Object
Rsvp to an event with the eid and rsvp_status which can be ‘attending’, ‘unsure’, or ‘declined’. wiki.developers.facebook.com/index.php/Events.rsvp E.g:
@user.rsvp_event('100321123', 'attending')
# => Returns true if all went well
77 78 79 80 |
# File 'lib/facebooker/models/user.rb', line 77 def rsvp_event(eid, rsvp_status, = {}) result = @session.post('facebook.events.rsvp', .merge(:eid => eid, :rsvp_status => rsvp_status)) result == '1' ? true : false end |