Skip to content

Instantly share code, notes, and snippets.

@caefer
Created October 4, 2011 08:57
Show Gist options
  • Save caefer/1261186 to your computer and use it in GitHub Desktop.
Save caefer/1261186 to your computer and use it in GitHub Desktop.
<?php
$facebook = new Facebook(array('appId' => 'YOUR_APP_ID', 'secret' => 'YOUR_APP_SECRET'));
$note = array(
'subject' => 'Your new Note!',
'message' => '<h1>Your new Note</h1><p>This is your new note</p>',
);
$response = $facebook->api('/YOUR_USER_OR_PAGE_ID/notes', 'post', $note);
$response = json_decode($response);
echo 'your note has the id #'.$response['id'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment