ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/facebook/trunk/facebookapi_php5_restlib.php
(Generate patch)

Comparing facebook/trunk/facebookapi_php5_restlib.php (file contents):
Revision 959 by douglas, 2007-11-13T15:22:57-08:00 vs.
Revision 962 by douglas, 2007-11-14T09:13:38-08:00

# Line 278 | Line 278 | function toggleDisplay(id, type) {
278    }
279  
280    /**
281 <   * Sends an email notification to the specified user.
282 <   * @return string url which you should send the logged in user to to finalize the message.
281 >   * Sends a notification to the specified users.
282 >   * @return (nothing)
283     */
284 <  public function notifications_send($to_ids, $notification, $email='') {
284 >  public function notifications_send($to_ids, $notification) {
285      return $this->call_method('facebook.notifications.send',
286 <                              array('to_ids' => $to_ids, 'notification' => $notification, 'email' => $email));
286 >                              array('to_ids' => $to_ids, 'notification' => $notification));
287 >  }
288 >
289 >  /**
290 >   * Sends an email to the specified user of the application.
291 >   * @param array $recipients : id of the recipients
292 >   * @param string $subject : subject of the email
293 >   * @param string $text : (plain text) body of the email
294 >   * @param string $fbml : fbml markup if you want an html version of the email
295 >   * @return comma separated list of successful recipients
296 >   */
297 >  public function notifications_sendEmail($recipients, $subject, $text, $fbml) {
298 >    return $this->call_method('facebook.notifications.sendEmail',
299 >                              array('recipients' => $recipients,
300 >                                    'subject' => $subject,
301 >                                    'text' => $text,
302 >                                    'fbml' => $fbml));
303    }
304  
305    /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines