Created
May 29, 2014 10:05
-
-
Save niraj-shah/d2ec53bc1133d6aae66b to your computer and use it in GitHub Desktop.
Posting to Timeline using PHP SDK 4.0.x
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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