Skip to content

Instantly share code, notes, and snippets.

@pietromalerba
Forked from niraj-shah/fb-post-4.0.x.php
Last active August 29, 2015 14:12
Show Gist options
  • Save pietromalerba/dda60373077d45ec0c25 to your computer and use it in GitHub Desktop.
Save pietromalerba/dda60373077d45ec0c25 to your computer and use it in GitHub Desktop.
<?php
// make api call
$response = (new FacebookRequest(
$session, 'POST', '/me/feed', array(
'message' => 'testing'
)
))->execute()->getGraphObject()->asArray();
// output response - should include post_id
print_r( $response );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment