Skip to content

Instantly share code, notes, and snippets.

@niraj-shah
Created January 9, 2013 14:49
Show Gist options
  • Save niraj-shah/4493685 to your computer and use it in GitHub Desktop.
Save niraj-shah/4493685 to your computer and use it in GitHub Desktop.
Facebook API: App Notifications API for Facebook Canvas Apps
$response = $this->facebook->api( '/' . $user_id . '/notifications', 'POST', array(
'template' => 'You have received a new message.',
'href' => 'path/to/message/?id=' . $id,
'access_token' => $app_access_token
) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment