Method: Facebooker::Session#send_notification
- Defined in:
- lib/facebooker/session.rb
#send_notification(user_ids, fbml, email_fbml = nil) ⇒ Object
341 342 343 344 345 346 347 348 349 350 351 352 353 |
# File 'lib/facebooker/session.rb', line 341 def send_notification(user_ids, fbml, email_fbml = nil) params = {:notification => fbml, :to_ids => user_ids.map{ |id| User.cast_to_facebook_id(id)}.join(',')} if email_fbml params[:email] = email_fbml end params[:type]="user_to_user" # if there is no uid, this is an announcement unless uid? params[:type]="app_to_user" end post 'facebook.notifications.send', params,uid? end |