tags:

views:

21

answers:

1

I need to be able to send users of a Facebook application a message, even if they are not logged in.

Is this possible?

If sending a message is not possible, could i post to their wall or news stream?

A: 

Try using the following function (found in facebookapi_php5_restlib.php in the Facebook SDK):

/**
 * Sends a notification to the specified users.
 *
 * @return A comma separated list of successful recipients
 * @error
 *    API_EC_PARAM_USER_ID_LIST
 */
 public function &notifications_send($to_ids, $notification, $type) {
   return $this->call_method('facebook.notifications.send',
       array('to_ids' => $to_ids,
             'notification' => $notification,
             'type' => $type));
 }
Greg Harman