Skip to content

Instantly share code, notes, and snippets.

@niraj-shah
Created May 29, 2014 10:05
Show Gist options
  • Save niraj-shah/d2ec53bc1133d6aae66b to your computer and use it in GitHub Desktop.
Save niraj-shah/d2ec53bc1133d6aae66b 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