Services_Facebook
[ class tree: Services_Facebook ] [ index: Services_Facebook ] [ all elements ]

Class: Services_Facebook_Notifications

Source Location: /Services_Facebook-0.2.8/Services/Facebook/Notifications.php

Class Overview

Services_Facebook_Common
   |
   --Services_Facebook_Notifications

Facebook Notifications Interface


Author(s):

Version:

  • Release: 0.2.8

Methods


Inherited Variables

Inherited Methods


Class Details

[line 36]
Facebook Notifications Interface


[ Top ]


Method Detail

get   [line 62]

object Instance get( )

Get notifications for current user

Returns all of the outstanding notifications for the given user, which include messages, pokes, shares, friend requests, group invites, and event invites.


[ Top ]

send   [line 92]

mixed send( $to, string $notification, [string $type = self::TYPE_USER_TO_USER])

Send a notification

When you send a notification you can send it to an array of Facebook uids. The notification should be valid FBML. Optionally, you can pass

Optionally, you can pass a type parameter. 'general' (default) notifications require an active user session, while 'announcement' does not.

The result value can either be true or a string. The string is a valid URI that you should redirect the user to for confirmation.


Parameters:

array   $to     Facebook uids to send note to
string   $notification     FBML of notification
string   $type     Type of notification

[ Top ]

sendEmail   [line 135]

array sendEmail( $recipients, string $subject, [mixed $text = null])

Send an email out to application users

Parameters:

array   $recipients     An array of Facebook uids to send too
string   $subject     Subject of the email
mixed   $text     Text or FBML and text for the body of the email

[ Top ]


Documentation generated on Fri, 05 Jun 2009 19:00:05 +0000 by phpDocumentor 1.4.2. PEAR Logo Copyright © PHP Group 2004.