Skip to content

Instantly share code, notes, and snippets.

@SecureCloud-biz
Created July 12, 2014 23:36
Show Gist options
  • Save SecureCloud-biz/e9863e8b32c050ad2f64 to your computer and use it in GitHub Desktop.
Save SecureCloud-biz/e9863e8b32c050ad2f64 to your computer and use it in GitHub Desktop.
Posting to Timeline using PHP SDK 4.0.x
<?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