Class Horde_Service_Facebook_Notifications
Notifications methods for Horde_Service_Faceboook
Copyright 2009-2012 Horde LLC (http://www.horde.org/)
-
Horde_Service_Facebook_Base
-
Horde_Service_Facebook_Notifications
Methods summary
public
array
&
|
#
get( )
Returns the outstanding notifications for the session user.
Returns the outstanding notifications for the session user.
Returns
array An assoc array of notification count objects for
'messages', 'pokes' and 'shares', a uid list of
'friend_requests', a gid list of 'group_invites',
and an eid list of 'event_invites'
Throws
|
public
string
&
|
#
send( mixed $to_ids, string $notification, string $type )
Sends a notification to the specified users.
Sends a notification to the specified users.
Parameters
- $to_ids
- <p>Either an array of uids or a string
list of uids.</p>
- $notification
- A FBML string for the notification.
- $type
- Either 'user_to_user' or 'app_to_user'
Returns
string A comma separated list of successful recipients
Throws
|
public
string
&
|
#
sendEmail( string $recipients, string $subject, string $text, string $fbml )
Sends an email to the specified user of the application.
Sends an email to the specified user of the application.
Parameters
- $recipients
- comma-separated ids of the recipients
- $subject
- subject of the email
- $text
- (plain text) body of the email
- $fbml
- fbml markup for an html version of the email
Returns
string A comma separated list of successful recipients
Throws
Error
API_EC_PARAM_USER_ID_LIST
|