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

Class: Services_Facebook_Notifications

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

Class Overview

Services_Facebook_Common
   |
   --Services_Facebook_Notifications

Facebook Notifications Interface


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 34]
Facebook Notifications Interface


[ Top ]


Method Detail

get   [line 46]

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 72]

mixed send( array $to, string $notification, [string $email = ''])

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 FBML for an email that will go out to each user.

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   $email   —  FBML for email sent to user

[ Top ]

sendEmail   [line 103]

array sendEmail( array $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 Mon, 11 Mar 2019 15:19:43 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.