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

Class: Services_Facebook_Notifications

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

Class Overview

Services_Facebook_Common
   |
   --Services_Facebook_Notifications

Facebook Notifications Interface


Author(s):

Version:

  • Release: 0.1.2

Methods


Inherited Variables

Inherited Methods


Class Details

[line 35]
Facebook Notifications Interface


[ Top ]


Method Detail

get   [line 57]

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

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

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

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:24:49 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.