Ver Mensaje Individual
  #9 (permalink)  
Antiguo 17/10/2012, 10:54
Avatar de masterpuppet
masterpuppet
Software Craftsman
 
Fecha de Ingreso: enero-2008
Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 16 años, 3 meses
Puntos: 845
Respuesta: Facebook notifications

Si no existe en el wrapper tocara crearlo, por lo que he visto(muy por arriba) podrías hacer algo así:

Código PHP:
Ver original
  1. public function sendNotification($userId, array $params)
  2. {      
  3.     if (!isset($params['access_token'])) {
  4.         $params['access_token'] = $this->getApplicationAccessToken();
  5.     }
  6.     return $this->_apiCall('notifications', $params, $userId);
  7. }

usage
Código PHP:
Ver original
  1. $data = array(
  2.     'href'     => 'app_base_url'
  3.     'template' => 'Max 180 characters',
  4.     'ref'      => 'Notification sent '. DateTime::createFromFormat(DateTime::ISO8601)
  5. );
  6. $facebook->sendNotification('user_id', $data);
__________________
http://es.phptherightway.com/
thats us riders :)